[ 
https://issues.apache.org/jira/browse/SLING-3488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Felix Oghină updated SLING-3488:
--------------------------------

    Attachment: patch.diff

Attaching patch that:

* if the redirect parameter doesn't contain the contextpath it's prepended to 
it before checking if the redirect is valid, so that old implementations that 
rely on this behavior still work
* if the redirect parameter contains the contextpath it's not duplicated

> Redirect after authentication breaks with context path
> ------------------------------------------------------
>
>                 Key: SLING-3488
>                 URL: https://issues.apache.org/jira/browse/SLING-3488
>             Project: Sling
>          Issue Type: Bug
>          Components: Authentication
>            Reporter: Felix Oghină
>         Attachments: patch.diff
>
>
> Specifying a sling.auth.redirect parameter in an authentication request is 
> broken if running with a context path:
> * if the parameter value doesn't contain the context path it's rejected as 
> invalid and the request is redirected to /contextpath
> * if the parameter value contains the contextpath it is duplicated in the 
> redirect, so the request is redirected to /contextpath/contextpath/...



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to