[
https://issues.apache.org/jira/browse/SLING-11307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler resolved SLING-11307.
--------------------------------------
Resolution: Fixed
I added the same exception handling to the bundled servlet as the default
script servlet is using.
It is a little bit unfortunate that we have two different code paths here, as
we need to keep the behaviour in sync.
https://github.com/apache/sling-org-apache-sling-servlets-resolver/commit/bf17678d4d245bd0cba39c9bc2eba3acbb6bd57d
> Different exception passed to error handler with bundled scripts
> -----------------------------------------------------------------
>
> Key: SLING-11307
> URL: https://issues.apache.org/jira/browse/SLING-11307
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Affects Versions: Servlets Resolver 2.9.4
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Priority: Major
> Fix For: Servlets Resolver 2.9.6
>
>
> At least for JSPs, different exceptions are passed to the error handler if
> bundled scripts are used.
> Example: if a NullPointerException is thrown, the NPE is passed to the error
> handler for repository based scripts - which is correct. For bundled scripts
> a ServletException is passed to the error handler - which is not correct
--
This message was sent by Atlassian Jira
(v8.20.7#820007)