You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2013/11/07 10:03:17 UTC

[jira] [Commented] (SLING-3006) SlingServletResolver webconsole plugin uses custom URL decomposition code that can be wrong

    [ https://issues.apache.org/jira/browse/SLING-3006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13815781#comment-13815781 ] 

Konrad Windszus commented on SLING-3006:
----------------------------------------

Another use case is the request URI
/home/users/geometrixx-outdoors/emily.andrews@mailinator.com/profile.form.html/content/geometrixx-outdoors/en/user/profile

which gets decomposed to
Path
    /home/users/geometrixx-outdoors/emily
Selectors
    [andrews@mailinator, com/profile, form]
Extension
    html 

whereas it should be 
Path
    /home/users/geometrixx-outdoors/emily.andrews@mailinator.com/profile
Selectors
    [form]
Extension
    html 

Is that fixed with the updated version as well?

> SlingServletResolver webconsole plugin uses custom URL decomposition code that can be wrong
> -------------------------------------------------------------------------------------------
>
>                 Key: SLING-3006
>                 URL: https://issues.apache.org/jira/browse/SLING-3006
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets
>    Affects Versions: Servlets Resolver 2.2.4
>            Reporter: Bertrand Delacretaz
>            Assignee: Bertrand Delacretaz
>            Priority: Minor
>             Fix For: Servlets Resolver 2.2.6
>
>
> Entering http://localhost:8080/libs/foo/content/something/formitems.json/image/vnd/xnd/knd.xml in the /system/console/servletresolver webconsole plugin does not produce the correct results as per the testDotsAroundSuffix() at [1]
> This is due to the plugin using its own DecomposedURL class which is a simplified version of the SlingRequestPathInfo class.
> For now, I'll add a warning to the plugin.
> [1] http://svn.apache.org/repos/asf/sling/trunk/bundles/engine/src/test/java/org/apache/sling/engine/impl/request/SlingRequestPathInfoTest.java



--
This message was sent by Atlassian JIRA
(v6.1#6144)