Fixed: Remove _PREVIOUS_REQUEST_ Session Attribute on non-authentication pages (OFBIZ-12047)

Demo content website cmssite/cms could not be accessed because in this case
requestUri is null. Like login request it does not need auth, I did not dig
further, here is a simple fix.
This commit is contained in:
Jacques Le Roux
2022-03-06 09:30:30 +01:00
parent 0380ab85fd
commit 33fe2aaba5
@@ -629,7 +629,7 @@ public final class RequestHandler {
requestMap = ccfg.getRequestMapMap().get("ajaxCheckLogin");
}
}
} else {
} else if (requestUri != null) {
String[] loginUris = EntityUtilProperties.getPropertyValue("security", "login.uris", delegator).split(",");
boolean removePreviousRequest = true;
for (int i = 0; i < loginUris.length; i++) {