You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Cédric Damioli (Closed JIRA)" <ji...@apache.org> on 2012/04/10 10:46:13 UTC

[jira] [Closed] (COCOON-2321) Unable to permanently redirect the client (eg. with an HTTP code 301) from inside a cocoon:// redirection

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

Cédric Damioli closed COCOON-2321.
----------------------------------

    Resolution: Fixed
      Assignee: Cédric Damioli

Committed in revision 1303826
                
> Unable to permanently redirect the client (eg. with an HTTP code 301) from inside a cocoon:// redirection
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: COCOON-2321
>                 URL: https://issues.apache.org/jira/browse/COCOON-2321
>             Project: Cocoon
>          Issue Type: Bug
>          Components: * Cocoon Core
>    Affects Versions: 2.1.11
>            Reporter: Cédric Damioli
>            Assignee: Cédric Damioli
>             Fix For: 2.1.12-dev (Current SVN)
>
>
> When inside a internal (cocoon://) redirection, the actual Environment is wrapped inside an EnvironmentWrapper which does not implement PermanentRedirector, so all redirections go through the redirect() method, which finally ends up in the redirect() method of the actual Environment, which issues a 302 status code in the case of the HttpEnvironment
> I propose to make EnvironmentWrapper implement PermanentRedirector and handle this case in the Cocoon core, to be able to also issue 301 HTTP responses.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira