Author: jleroux
Date: Tue Jun 28 07:47:40 2011
New Revision: 1140469
URL:
http://svn.apache.org/viewvc?rev=1140469&view=revLog:
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;
+ }
}
}
}