You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AEM Version, including Service Packs, Cumulative Fix Packs, etc: AEM Cloud Service
ACS AEM Commons Version: 6.0.0
Reproducible on Latest? yes
Expected Behavior
When in author EDIT mode, the ACS AEM Commons error handler is supposed to let the default AEM handler render internal server errors. See the following code from default.jsp:
if (ModeUtil.isPreview(slingRequest)) {
%><cq:include script="/apps/acs-commons/components/utilities/errorpagehandler/preview/errormessage.jsp" /><%
return;
} else {
// In Author and Edit or Design, so allow OOTB WCMDebugFilter to handle the error message display
return;
}
Actual Behavior
Because there is a return; in the else statement, the default error handling from /libs/sling/servlet/errorhandler/default.jsp is never reached, resulting in the end user getting a blank page on exception in Edit/Design mode. Removing the return; restores the expected behavior, with the exception stack trace printing to the window.
Basically just capturing the case that the ACS Commons handler is doing the return that prevents use of the OOTB libs default.jsp and including it myself.
Required Information
Expected Behavior
When in author EDIT mode, the ACS AEM Commons error handler is supposed to let the default AEM handler render internal server errors. See the following code from
default.jsp
:Actual Behavior
Because there is a
return;
in theelse
statement, the default error handling from/libs/sling/servlet/errorhandler/default.jsp
is never reached, resulting in the end user getting a blank page on exception in Edit/Design mode. Removing thereturn;
restores the expected behavior, with the exception stack trace printing to the window.Steps to Reproduce
Implement the ACS AEM Commons error handling feature per instructions at https://adobe-consulting-services.github.io/acs-aem-commons/features/error-handler/index.html and trigger a RuntimeException for a server request while in author EDIT mode.
The text was updated successfully, but these errors were encountered: