Skip to content

[Bug]: add-password API is logically inverted? #3420

Open
@thepebbler

Description

@thepebbler

Installation Method

Docker fat

The Problem

My head seems to be rejecting the grammar/logical proposition of the add-password API.

basically I wanted to set an owner password to restrict extraction (including accessibility) and disable printing..

So I use the API to set those 3 options to 'false', i.e. canPrint='false' , but the output is the opposite, i.e. canPrint=false means you can print..

Notably the webfront end (http://localhost:8080/add-password?lang=en_GB) has the terms grammatically the other way around 'preventPrinting' etc.. and I wonder if that just needs propogating to the API?

Version of Stirling-PDF

0.45.6

Last Working Version of Stirling-PDF

No response

Page Where the Problem Occurred

'http://localhost:8080/api/v1/security/add-password

Docker Configuration

Relevant Log Output

Additional Information

No response

Browsers Affected

No response

No Duplicate of the Issue

  • I have verified that there are no existing issues raised related to my problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Back EndIssues related to back-end development

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions