This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 81a1ed6dfd Fixed: ScreenFopViewHandler-check-adding-PDFEncryption
(OFBIZ-13279) (#903)
81a1ed6dfd is described below
commit 81a1ed6dfdfa56dc08aff311668a7b378adef464
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 fdf3160870..c5a5fca9e6 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 {