Radu Cotescu created SLING-11722:
------------------------------------

             Summary: The SlingRequestDispatcher doesn't correctly implement 
the RequestDispatcher API
                 Key: SLING-11722
                 URL: https://issues.apache.org/jira/browse/SLING-11722
             Project: Sling
          Issue Type: Bug
          Components: Engine
            Reporter: Radu Cotescu
             Fix For: Engine 2.13.2


The {{include}} method [0] has the following important sentence in its 
documentation:
{quote}
The ServletResponse object has its path elements and parameters remain 
unchanged from the caller's. The included servlet cannot change the response 
status code or set headers; any attempt to make a change is ignored.
{quote}

However, the {{SlingRequestDispatcher}} [1] doesn't enforce this in any way.

[0] - 
https://docs.oracle.com/javaee/7/api/javax/servlet/RequestDispatcher.html#include-javax.servlet.ServletRequest-javax.servlet.ServletResponse-



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to