You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Jason Rose (JIRA)" <ji...@apache.org> on 2010/02/24 18:53:27 UTC

[jira] Created: (SLING-1410) VanityPath not working in middle of URL

VanityPath not working in middle of URL
---------------------------------------

                 Key: SLING-1410
                 URL: https://issues.apache.org/jira/browse/SLING-1410
             Project: Sling
          Issue Type: Bug
         Environment: -r 911442, max osx 10.5, jdk 1.6 on karaf 1.2 using launchpad feature
            Reporter: Jason Rose


$ curl -F "title=hello" -F"jcr:mixinTypes=sling:VanityPath" -F"sling:vanityPath=/nice/path" http://admin:admin@localhost:8181/content/test/this/is/a/nasty/path
$ curl -F"title=test" http://admin:admin@localhost:8181/content/test/this/is/a/nasty/path/even/more/path

Now, the inconsistency is here:

$ curl localhost:8181/nice/path works as intended.
$ curl localhost:8181/nice/path/even/more/path returns a 404
$ curl localhost:8181/nice/path.infinity.json shows that the nodes are indeed there, but I can't seem to access them.

Is this the intended behavior of the vanityPath, i.e. to not allow the path as part of the resource resolution process?  It doesn't seem to be the case, since calling .infinity.json on the vanityPath shows the nodes I want to access under them.

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


[jira] Updated: (SLING-1410) VanityPath not working in middle of URL

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-1410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler updated SLING-1410:
------------------------------------

    Component/s: Engine

> VanityPath not working in middle of URL
> ---------------------------------------
>
>                 Key: SLING-1410
>                 URL: https://issues.apache.org/jira/browse/SLING-1410
>             Project: Sling
>          Issue Type: Bug
>          Components: Engine
>         Environment: -r 911442, max osx 10.5, jdk 1.6 on karaf 1.2 using launchpad feature
>            Reporter: Jason Rose
>
> $ curl -F "title=hello" -F"jcr:mixinTypes=sling:VanityPath" -F"sling:vanityPath=/nice/path" http://admin:admin@localhost:8181/content/test/this/is/a/nasty/path
> $ curl -F"title=test" http://admin:admin@localhost:8181/content/test/this/is/a/nasty/path/even/more/path
> Now, the inconsistency is here:
> $ curl localhost:8181/nice/path works as intended.
> $ curl localhost:8181/nice/path/even/more/path returns a 404
> $ curl localhost:8181/nice/path.infinity.json shows that the nodes are indeed there, but I can't seem to access them.
> Is this the intended behavior of the vanityPath, i.e. to not allow the path as part of the resource resolution process?  It doesn't seem to be the case, since calling .infinity.json on the vanityPath shows the nodes I want to access under them.

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


[jira] Updated: (SLING-1410) VanityPath not working in middle of URL

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-1410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger updated SLING-1410:
-------------------------------------

    Component/s: JCR
                     (was: Engine)

> VanityPath not working in middle of URL
> ---------------------------------------
>
>                 Key: SLING-1410
>                 URL: https://issues.apache.org/jira/browse/SLING-1410
>             Project: Sling
>          Issue Type: Bug
>          Components: JCR
>         Environment: -r 911442, max osx 10.5, jdk 1.6 on karaf 1.2 using launchpad feature
>            Reporter: Jason Rose
>
> $ curl -F "title=hello" -F"jcr:mixinTypes=sling:VanityPath" -F"sling:vanityPath=/nice/path" http://admin:admin@localhost:8181/content/test/this/is/a/nasty/path
> $ curl -F"title=test" http://admin:admin@localhost:8181/content/test/this/is/a/nasty/path/even/more/path
> Now, the inconsistency is here:
> $ curl localhost:8181/nice/path works as intended.
> $ curl localhost:8181/nice/path/even/more/path returns a 404
> $ curl localhost:8181/nice/path.infinity.json shows that the nodes are indeed there, but I can't seem to access them.
> Is this the intended behavior of the vanityPath, i.e. to not allow the path as part of the resource resolution process?  It doesn't seem to be the case, since calling .infinity.json on the vanityPath shows the nodes I want to access under them.

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


[jira] Commented: (SLING-1410) VanityPath not working in middle of URL

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-1410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12903047#action_12903047 ] 

Felix Meschberger commented on SLING-1410:
------------------------------------------

The vanity path functionality is what it is called: a vanity path. As such it is supported unmodied (your first example) or with selectors and extensions (your third) example. But the vanity path is not intended as an intermediate node (your second sample).

You could use the /etc/map functionality though, to map a path prefix. See http://sling.apache.org/site/mappings-for-resource-resolution.html

> VanityPath not working in middle of URL
> ---------------------------------------
>
>                 Key: SLING-1410
>                 URL: https://issues.apache.org/jira/browse/SLING-1410
>             Project: Sling
>          Issue Type: Bug
>          Components: JCR
>         Environment: -r 911442, max osx 10.5, jdk 1.6 on karaf 1.2 using launchpad feature
>            Reporter: Jason Rose
>
> $ curl -F "title=hello" -F"jcr:mixinTypes=sling:VanityPath" -F"sling:vanityPath=/nice/path" http://admin:admin@localhost:8181/content/test/this/is/a/nasty/path
> $ curl -F"title=test" http://admin:admin@localhost:8181/content/test/this/is/a/nasty/path/even/more/path
> Now, the inconsistency is here:
> $ curl localhost:8181/nice/path works as intended.
> $ curl localhost:8181/nice/path/even/more/path returns a 404
> $ curl localhost:8181/nice/path.infinity.json shows that the nodes are indeed there, but I can't seem to access them.
> Is this the intended behavior of the vanityPath, i.e. to not allow the path as part of the resource resolution process?  It doesn't seem to be the case, since calling .infinity.json on the vanityPath shows the nodes I want to access under them.

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