This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release24.09 by this push:
new a0fd48e6f8 Fixed: ScreenFopViewHandler-check-adding-PDFEncryption
(OFBIZ-13279) (#903)
a0fd48e6f8 is described below
commit a0fd48e6f8e9f7195805d6c86281b815fb2de892
Author: Lukas-Finster <[email protected]>
AuthorDate: Wed Jul 30 10:58:06 2025 +0200
Fixed: ScreenFopViewHandler-check-adding-PDFEncryption (OFBIZ-13279) (#903)
Fixed: Missing not in check for adding PDFEncryption (OFBIZ-13279)
This adds a missing (not) in check if PDF encryption should be used
after editing
Thanks: Martin Becker
---
.../java/org/apache/ofbiz/widget/renderer/fo/ScreenFopViewHandler.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/fo/ScreenFopViewHandler.java
b/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/fo/ScreenFopViewHandler.java
index 85bd934bbd..4417da8cf6 100644
---
a/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/fo/ScreenFopViewHandler.java
+++
b/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/fo/ScreenFopViewHandler.java
@@ -139,7 +139,7 @@ public class ScreenFopViewHandler extends
AbstractViewHandler {
? ApacheFopWorker.getAllowEditContentDefault() : (String)
context.get("allowEditContent"));
boolean allowEditAnnotations =
Boolean.parseBoolean(UtilValidate.isEmpty(context.get("allowEditAnnotations"))
? ApacheFopWorker.getAllowEditAnnotationsDefault() : (String)
context.get("allowEditAnnotations"));
- if (UtilValidate.isNotEmpty(userPassword) ||
UtilValidate.isNotEmpty(ownerPassword) || !allowPrint || !allowCopyContent ||
allowEditContent
+ if (UtilValidate.isNotEmpty(userPassword) ||
UtilValidate.isNotEmpty(ownerPassword) || !allowPrint || !allowCopyContent ||
!allowEditContent
|| !allowEditAnnotations) {
int encryptionLength = 128;
try {