[
https://issues.apache.org/jira/browse/SLING-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147761#comment-13147761
]
Vidar S. Ramdal commented on SLING-2268:
----------------------------------------
I'm not sure. In many web applications, a request to /resourcexyz (no
extension) is redirected to /resourcexyz/. Thus, /resourcexyz is an alias for
/resourcexyz/.
I agree that /resourcexyz/.html does not look nice, but returning 404 when in
fact /resourcexyz.html would resolve to something, seems wrong.
> Request to resource xyz/.html resolves to xyz
> ---------------------------------------------
>
> Key: SLING-2268
> URL: https://issues.apache.org/jira/browse/SLING-2268
> Project: Sling
> Issue Type: Bug
> Components: Servlets
> Affects Versions: Servlets Get 2.1.2
> Reporter: Honwai Wong
> Priority: Minor
> Attachments: SLING-2268-asanso-patch.txt
>
>
> A request to a resource with a trailing slash and an extension properly
> resolves to the correct resource and resource-type. From my point of view,
> such a request looks rather incorrect and shouldn't get served in the first
> place, e.g. returning a 404 response:
> http://<host>:<port>/resourcexyz/.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira