You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2015/07/16 22:28:05 UTC

[jira] [Updated] (PDFBOX-2888) setAllSecurityToBeRemoved(true) before calling protect() should have no effect

     [ https://issues.apache.org/jira/browse/PDFBOX-2888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr updated PDFBOX-2888:
------------------------------------
    Issue Type: Improvement  (was: Bug)

>  setAllSecurityToBeRemoved(true) before calling protect() should have no effect
> -------------------------------------------------------------------------------
>
>                 Key: PDFBOX-2888
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2888
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Crypto
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> As discussed on the mailing list:
> user [~rnibali] had a problem where a file wasn't saved with encryption. The cause turned out to be that he had called
> {code}
> setAllSecurityToBeRemoved(true)
> {code}
> and then
> {code}
> protect(...)
> {code}
> Although the javadoc of both methods is clear, I see a risk that this happens again, e.g. when people combine existing code.
> Solution: set allSecurityToBeRemoved to false when protect() is called and log a warning.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org