You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Justin Edelson (JIRA)" <ji...@apache.org> on 2012/10/29 22:04:13 UTC

[jira] [Created] (SLING-2639) vanity paths don't work properly for file (and file-like resources)

Justin Edelson created SLING-2639:
-------------------------------------

             Summary: vanity paths don't work properly for file (and file-like resources)
                 Key: SLING-2639
                 URL: https://issues.apache.org/jira/browse/SLING-2639
             Project: Sling
          Issue Type: Bug
          Components: ResourceResolver
            Reporter: Justin Edelson


Consider the case where a file is stored as a resource and is assigned a vanity path, e.g. /content/assets/myimage.jpg is assigned a sling:vanityPath of /myimage with sling:redirect = true. The desired behavior is for GET /myimage to redirect to /content/assets/myimage.jpg. Currently, the redirect is to /content/assets/myimage.jpg.html.

If a resource's name contains a ".", then the "html" addition on a vanity path should not take place.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (SLING-2639) vanity paths don't work properly for file (and file-like resources)

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

Justin Edelson updated SLING-2639:
----------------------------------

    Attachment: SLING-2639.patch

proposed change
                
> vanity paths don't work properly for file (and file-like resources)
> -------------------------------------------------------------------
>
>                 Key: SLING-2639
>                 URL: https://issues.apache.org/jira/browse/SLING-2639
>             Project: Sling
>          Issue Type: Bug
>          Components: ResourceResolver
>            Reporter: Justin Edelson
>         Attachments: SLING-2639.patch
>
>
> Consider the case where a file is stored as a resource and is assigned a vanity path, e.g. /content/assets/myimage.jpg is assigned a sling:vanityPath of /myimage with sling:redirect = true. The desired behavior is for GET /myimage to redirect to /content/assets/myimage.jpg. Currently, the redirect is to /content/assets/myimage.jpg.html.
> If a resource's name contains a ".", then the "html" addition on a vanity path should not take place.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SLING-2639) vanity paths don't work properly for file (and file-like resources)

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

Felix Meschberger commented on SLING-2639:
------------------------------------------

LGTM
                
> vanity paths don't work properly for file (and file-like resources)
> -------------------------------------------------------------------
>
>                 Key: SLING-2639
>                 URL: https://issues.apache.org/jira/browse/SLING-2639
>             Project: Sling
>          Issue Type: Bug
>          Components: ResourceResolver
>            Reporter: Justin Edelson
>         Attachments: SLING-2639.patch
>
>
> Consider the case where a file is stored as a resource and is assigned a vanity path, e.g. /content/assets/myimage.jpg is assigned a sling:vanityPath of /myimage with sling:redirect = true. The desired behavior is for GET /myimage to redirect to /content/assets/myimage.jpg. Currently, the redirect is to /content/assets/myimage.jpg.html.
> If a resource's name contains a ".", then the "html" addition on a vanity path should not take place.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (SLING-2639) vanity paths don't work properly for file (and file-like resources)

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

Justin Edelson resolved SLING-2639.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: Resource Resolver 1.0.0
         Assignee: Justin Edelson

fixed in r1403772
                
> vanity paths don't work properly for file (and file-like resources)
> -------------------------------------------------------------------
>
>                 Key: SLING-2639
>                 URL: https://issues.apache.org/jira/browse/SLING-2639
>             Project: Sling
>          Issue Type: Bug
>          Components: ResourceResolver
>            Reporter: Justin Edelson
>            Assignee: Justin Edelson
>             Fix For: Resource Resolver 1.0.0
>
>         Attachments: SLING-2639.patch
>
>
> Consider the case where a file is stored as a resource and is assigned a vanity path, e.g. /content/assets/myimage.jpg is assigned a sling:vanityPath of /myimage with sling:redirect = true. The desired behavior is for GET /myimage to redirect to /content/assets/myimage.jpg. Currently, the redirect is to /content/assets/myimage.jpg.html.
> If a resource's name contains a ".", then the "html" addition on a vanity path should not take place.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira