Victor Saar created SLING-10427:
-----------------------------------
Summary: Pipeline executed on error even though processError=false
Key: SLING-10427
URL: https://issues.apache.org/jira/browse/SLING-10427
Project: Sling
Issue Type: Bug
Affects Versions: Rewriter 1.2.2
Reporter: Victor Saar
I have a transformer configured in a custom pipeline that can throw an
exception in its {{init}} method. Even though the pipeline is configured to not
process errors, i.e. {{processError=false}}, it's still executed and fails
again resulting in the error page not shown.
In addition to the {{processError}} setting,
{{ProcessorConfigurationImpl#match}} checks if a
{{javax.servlet.error.status_code}} request attribute is set, which is not the
case.
I see that the {{SlingRequestProcessorImpl}} catches the exception and sets a
{{javax.servlet.error.servlet_name}} request attribute before initiating the
error handler, but not the one for status code.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)