You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Gabriel (JIRA)" <ji...@apache.org> on 2010/02/18 01:37:27 UTC

[jira] Created: (WW-3389) StatusCode parameter in the URL

StatusCode parameter in the URL
-------------------------------

                 Key: WW-3389
                 URL: https://issues.apache.org/jira/browse/WW-3389
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.1.8.1
            Reporter: Gabriel
            Priority: Minor


I have a redirect result configuration where I change the statusCode:
<result name="permanentRedirect" type="redirect">
  <param name="location">${redirectUrl}</param>
  <param name="statusCode">301</param>
  <param name="prependServletContext">false</param>
</result>

When the redirect occurs, it appends a statusCode parameter on the URL, like this:  http://domain.com/path?statusCode=301

It was working correctly on version 2.0.6, with no statusCode in the URL

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


[jira] Updated: (WW-3389) StatusCode parameter in the URL

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

Lukasz Lenart updated WW-3389:
------------------------------

    Fix Version/s: 2.2.x

> StatusCode parameter in the URL
> -------------------------------
>
>                 Key: WW-3389
>                 URL: https://issues.apache.org/jira/browse/WW-3389
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.8.1
>            Reporter: Gabriel
>            Priority: Minor
>             Fix For: 2.2.x
>
>
> I have a redirect result configuration where I change the statusCode:
> <result name="permanentRedirect" type="redirect">
>   <param name="location">${redirectUrl}</param>
>   <param name="statusCode">301</param>
>   <param name="prependServletContext">false</param>
> </result>
> When the redirect occurs, it appends a statusCode parameter on the URL, like this:  http://domain.com/path?statusCode=301
> It was working correctly on version 2.0.6, with no statusCode in the URL

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


[jira] Commented: (WW-3389) StatusCode parameter in the URL

Posted by "Maurizio Cucchiara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921902#action_12921902 ] 

Maurizio Cucchiara commented on WW-3389:
----------------------------------------

I tried  your result configuration and it seem to works as expected.
Could you provide me more details?


> StatusCode parameter in the URL
> -------------------------------
>
>                 Key: WW-3389
>                 URL: https://issues.apache.org/jira/browse/WW-3389
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.8.1
>            Reporter: Gabriel
>            Priority: Minor
>             Fix For: 2.2.x
>
>
> I have a redirect result configuration where I change the statusCode:
> <result name="permanentRedirect" type="redirect">
>   <param name="location">${redirectUrl}</param>
>   <param name="statusCode">301</param>
>   <param name="prependServletContext">false</param>
> </result>
> When the redirect occurs, it appends a statusCode parameter on the URL, like this:  http://domain.com/path?statusCode=301
> It was working correctly on version 2.0.6, with no statusCode in the URL

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