DefaultGetServlet should report an error if the selector string is not empty
----------------------------------------------------------------------------

                 Key: SLING-1089
                 URL: https://issues.apache.org/jira/browse/SLING-1089
             Project: Sling
          Issue Type: Bug
          Components: Servlets Get
    Affects Versions: Servlets Get 2.0.4
            Reporter: Eric Norman


The DefaultGetServlet will render a response whenever the extension matches one 
of the mapped renderer servlets.  The selectors are not checked so the 
requesting user could put any arbitrary text as the selector and never get an 
error.

For example, http://host/resource_path.txt would stream back the text 
representation of the resource.  However, 
http://host/resource_path.some.made.up.selector.txt also streams back the same 
response.

I would think it would be more correct for the DefaultGetServlet to only stream 
a response when the selectors are empty.  If the selectors are not empty then 
the user loaded an invalid url, or there is a server-side script missing to 
handle the specified selector.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to