diff --git a/framework/common/config/general.properties b/framework/common/config/general.properties index b0f8f03442..9d8b6bfd0a 100644 --- a/framework/common/config/general.properties +++ b/framework/common/config/general.properties @@ -143,6 +143,3 @@ multitenant=N # -- Y if you use a cluster. Most of the time this should not be needed. Setting distributed-cache-clear-enabled="true" is enough # -- to guarantee no sequenceIds duplicates. See OFBIZ-2353 for details cluster=N - -# -- N if you want to use external requests (not in available in current controller), see OFBIZ-5037 -throwRequestHandlerExceptionOnMissingLocalRequest=Y \ No newline at end of file diff --git a/framework/webapp/config/requestHandler.properties b/framework/webapp/config/requestHandler.properties new file mode 100644 index 0000000000..9878314cfc --- /dev/null +++ b/framework/webapp/config/requestHandler.properties @@ -0,0 +1,2 @@ +# -- N if you want to use external requests (not in available in current controller), see OFBIZ-5037 +throwRequestHandlerExceptionOnMissingLocalRequest=Y \ No newline at end of file diff --git a/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java b/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java index d2ef6b64b2..6d9dc0b660 100644 --- a/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java +++ b/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java @@ -67,7 +67,7 @@ public class RequestHandler { public static final String module = RequestHandler.class.getName(); private static final Boolean THROW_REQUEST_HANDLER_EXCEPTION_ON_MISSING_LOCAL_REQUEST = - UtilProperties.propertyValueEqualsIgnoreCase("general.properties", "throwRequestHandlerExceptionOnMissingLocalRequest", "Y"); + UtilProperties.propertyValueEqualsIgnoreCase("requestHandler.properties", "throwRequestHandlerExceptionOnMissingLocalRequest", "Y"); public static RequestHandler getRequestHandler(ServletContext servletContext) { RequestHandler rh = (RequestHandler) servletContext.getAttribute("_REQUEST_HANDLER_");