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:21:18 UTC
[jira] Created: (SLING-1227) Call ResourceResolver.map on redirect
targets before sending the redirect
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.
[jira] Closed: (SLING-1227) Call ResourceResolver.map on redirect
targets before sending the redirect
Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler closed SLING-1227.
-----------------------------------
> 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.
[jira] Resolved: (SLING-1227) Call ResourceResolver.map on redirect
targets before sending the redirect
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger resolved SLING-1227.
--------------------------------------
Resolution: Fixed
Considering this issue fixed.
> 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.
[jira] Commented: (SLING-1227) Call ResourceResolver.map on
redirect targets before sending the redirect
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ 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.