This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a change to branch release17.12 in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git. from ba15f2e Improved: Adds information to install without the demo data new 0e3b1c7 Improved: better message for host-headers-allowed new 76beb10 Improved: Put the AsciiDoc files in main repo under the web site (OFBIZ-11879) The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: build.gradle | 10 ++++++++++ .../java/org/apache/ofbiz/webapp/control/RequestHandler.java | 6 ++++-- 2 files changed, 14 insertions(+), 2 deletions(-) |
This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch release17.12 in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git commit 0e3b1c7a49b2192cd11347e7f4efe00fbacd64e4 Author: Jacques Le Roux <[hidden email]> AuthorDate: Sat Jul 11 09:54:18 2020 +0200 Improved: better message for host-headers-allowed Adds an explanation about what to do when using own domain. Some users don't look into the log so it's better to set also the exception message in order for them to have it right at 1st glance. --- .../main/java/org/apache/ofbiz/webapp/control/RequestHandler.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/RequestHandler.java b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/RequestHandler.java index 52fa77f..44bd79b 100644 --- a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/RequestHandler.java +++ b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/RequestHandler.java @@ -127,8 +127,10 @@ public class RequestHandler { GenericValue userLogin, Delegator delegator) throws RequestHandlerException, RequestHandlerExceptionAllowExternalRequests { if (!hostHeadersAllowed.contains(request.getServerName())) { - Debug.logError("Domain " + request.getServerName() + " not accepted to prevent host header injection ", module); - throw new RequestHandlerException("Domain " + request.getServerName() + " not accepted to prevent host header injection "); + Debug.logError("Domain " + request.getServerName() + " not accepted to prevent host header injection." + + " You need to set host-headers-allowed property in security.properties file.", MODULE); + throw new RequestHandlerException("Domain " + request.getServerName() + " not accepted to prevent host header injection." + + " You need to set host-headers-allowed property in security.properties file."); } final boolean throwRequestHandlerExceptionOnMissingLocalRequest = EntityUtilProperties.propertyValueEqualsIgnoreCase( |
In reply to this post by jleroux@apache.org
This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch release17.12 in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git commit 76beb10627a8a9a2516d5a4843c8ef7adccdc61c Author: Jacques Le Roux <[hidden email]> AuthorDate: Sat Jul 11 09:45:49 2020 +0200 Improved: Put the AsciiDoc files in main repo under the web site (OFBIZ-11879) We have AsciiDoc files in main repo and it would be better to have them also in HTML format under the web site: https://ci.apache.org/projects/ofbiz/site For that a new generateReadmeFiles is needed and new "readme" locations under each of https://ci.apache.org/projects/ofbiz/site "sub-dirs". We can create those from Buildbot like we did with INFRA-20311 --- build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.gradle b/build.gradle index 749124e..48b36b3 100644 --- a/build.gradle +++ b/build.gradle @@ -536,6 +536,16 @@ task deleteAllPluginsDocumentation { } +task generateReadmeFiles(group: docsGroup, type: AsciidoctorTask) { + doFirst { delete "${buildDir}/asciidoc/readme" } + description 'Generate OFBiz README files' + sourceDir "${rootDir}" + sources { + include 'README.adoc', 'CHANGELOG.adoc', 'CONTRIBUTING.adoc' + } + outputDir file("${buildDir}/asciidoc/readme/") +} + task generateOfbizDocumentation(group: docsGroup, type: AsciidoctorTask) { dependsOn deleteOfbizDocumentation description 'Generate OFBiz documentation manuals' |
Free forum by Nabble | Edit this page |