You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2009/12/08 14:55:18 UTC

[jira] Commented: (SLING-1227) Call ResourceResolver.map on redirect targets before sending the redirect

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

Felix Meschberger commented on SLING-1227:
------------------------------------------

Fixed in Rev. 888399:

  * redirect paths are now always absolute URLs or absolut paths
  * if abslute paths, they have been mapped by the ResourceResolver.map method using the current request as the basis

Also adapted the unit tests and added support for relative targets walking the tree, such as ../.../x/y/z

> Call ResourceResolver.map on redirect targets before sending the redirect
> -------------------------------------------------------------------------
>
>                 Key: SLING-1227
>                 URL: https://issues.apache.org/jira/browse/SLING-1227
>             Project: Sling
>          Issue Type: Improvement
>          Components: Servlets
>    Affects Versions: Servlets Get 2.0.6
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: Servlets Get 2.0.8
>
>
> Currently the RedirectServlet tries hard to create a relative path to be used for the HttpServletRequest.sendRedirect call. This is mostly historic (and the exact reasons escape my mind). In the meentime the ResourceResolver.map method has been developped and should be leveraged to create a correct redirect URL for a given target path.

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