From 7785d5a470d3b104f099bab6699111117ed06e53 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Sat, 21 Jan 2017 07:02:19 +0000 Subject: [PATCH] Implemented: Birt Report Builder: an enhancement of the Birt component. Easier user possibility of report creation. (OFBIZ-6919) Fixes a small issue: the REPORT contentId is now named FLEXIBLE_REPORT Note: the BIRT_REPORT_BUILDER_USAGE_POLICY still need to be completed. Hence it's for now bypassed in ContentWorker.renderContentAsText(), based on the FLEXIBLE_REPORT contentId git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1779701 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/ofbiz/content/content/ContentWorker.java | 2 +- .../src/main/java/org/apache/ofbiz/base/util/UtilCodec.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/content/src/main/java/org/apache/ofbiz/content/content/ContentWorker.java b/applications/content/src/main/java/org/apache/ofbiz/content/content/ContentWorker.java index f891e014cb..8db3206bff 100644 --- a/applications/content/src/main/java/org/apache/ofbiz/content/content/ContentWorker.java +++ b/applications/content/src/main/java/org/apache/ofbiz/content/content/ContentWorker.java @@ -340,7 +340,7 @@ public class ContentWorker implements org.apache.ofbiz.widget.content.ContentWor String rendered = writer.toString(); // According to https://www.owasp.org/index.php/XSS_%28Cross_Site_Scripting%29_Prevention_Cheat_Sheet#XSS_Prevention_Rules_Summary // Normally head is protected by X-XSS-Protection Response Header by default - if (!"REPORT".equals(contentTypeId)) { // FIXME here BIRT_REPORT_BUILDER_USAGE_POLICY should be used but I could not tweak it yet: the content of