Skip to content
Browse files
Reverted: Unknown request [images]; this request does not exist or ca…
…nnot be

called directly.

Partially revert r1858094, just replaces "rmaps == null" by "rmaps.isEmpty()"

As Mathieu mentioned in dev:
<<Checking for ‘null’ here is not a solution since ‘resolveURI’ contract
it to return a non-nullable collection.
This commit is only bypassing the error handling.>>

As I said in r1858094:
<<This has been somehow broken by OFBIZ-10438 but actually it was already broken 
before but not for the same reason.>>

We need now to review/check how it worked in R15 where it's OK, and possibly 
implements the same

git-svn-id: 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
JacquesLeRoux committed Apr 26, 2019
1 parent 8ef84cf commit 010083250f51c6ec7755f74856388583a7085f05
Showing with 1 addition and 1 deletion.
  1. +1 −1 framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/
@@ -272,7 +272,7 @@ public void doRequest(HttpServletRequest request, HttpServletResponse response,
String overrideViewUri = getOverrideViewUri(path);

Collection<RequestMap> rmaps = resolveURI(ccfg, request);
if (rmaps == null) {
if (rmaps.isEmpty()) {
if (throwRequestHandlerExceptionOnMissingLocalRequest) {
throw new RequestHandlerException(requestMissingErrorMessage);
} else {

0 comments on commit 0100832

Please sign in to comment.