Joerg Hoh created SLING-13413:
---------------------------------

             Summary: SlingServletResolver: provide simple error handlers for 
non-HTML requests
                 Key: SLING-13413
                 URL: https://issues.apache.org/jira/browse/SLING-13413
             Project: Sling
          Issue Type: Improvement
            Reporter: Joerg Hoh


Right now, when a request to a non-HTML resource fails, the DefaultErrorServlet 
is resolved, which in most cases is not built to explicitly handle requests to 
non-HTML resources and therefor always returns a HTML response.

In that case, a request to /content/non-existing-image.png will often returns 
the HTML error page, even if the browser indicated in the accept header, that 
it won't handle text/html  for this request. Next to potential security 
problems this can cause performance problems if the creation of the error page 
is expensive.

We need to have a set of dedicated content-handlers, which handle those 
requests with a reasonable response body (empty is also totally fine) and also 
fast.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to