You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2011/06/28 09:47:40 UTC
svn commit: r1140469 -
/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java
Author: jleroux
Date: Tue Jun 28 07:47:40 2011
New Revision: 1140469
URL: http://svn.apache.org/viewvc?rev=1140469&view=rev
Log:
Fixes the protect view feature introduced at r727508 and broken since r741374. Fortunately the fix was pretty simple
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java?rev=1140469&r1=1140468&r2=1140469&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java Tue Jun 28 07:47:40 2011
@@ -308,14 +308,18 @@ public class RequestHandler {
if (returnString.length() > 0) {
request.setAttribute("_ERROR_MESSAGE_", returnString);
}
- eventReturn = "protect";
- // check to see if there is an "protect" response, if so it's ok else show the default_error_response_view
+ eventReturn = null;
+ // check to see if there is a "protect" response, if so it's ok else show the default_error_response_view
if (!requestMap.requestResponseMap.containsKey("protect")) {
String protectView = controllerConfig.getProtectView();
if (protectView != null) {
overrideViewUri = protectView;
} else {
overrideViewUri = UtilProperties.getPropertyValue("security.properties", "default.error.response.view");
+ overrideViewUri = overrideViewUri.replace("view:", "");
+ if ("none:".equals(overrideViewUri)) {
+ interruptRequest = true;
+ }
}
}
}