struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-4033) Empty action names will be ignored
Date Thu, 28 Mar 2013 10:27:17 GMT

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

David updated WW-4033:
----------------------

    Description: 
Empty action names doesnt work anymore. In struts 2.3.8 and below it works as expected.

Sample package:
<constant name="struts.action.extension" value="html,"/> 
<package name="default" extends="struts-default" namespace="/">
  <default-interceptor-ref name="defaultStack"/>
  <action name="" >
    <result type="redirectAction">
      <param name="actionName">actionname</param>
      <param name="namespace">/namespace</param>
    </result>
  </action>
</package>

Apache struts 2.3.12 just displays the directory content instead of redirecting to the /namespace/actionname
action. URL: http://localhost:8080/

if I change the libraries struts2-core and xwork-core to an older version (2.3.8), it works
just fine. It redirects the url http://localhost:8080/ to http://localhost:8080/namespace/actionname.html



  was:
Empty action names doesnt work anymore. In struts 2.3.8 an below it works as expected.

Sample package:
<constant name="struts.action.extension" value="html,"/> 
<package name="default" extends="struts-default" namespace="/">
  <default-interceptor-ref name="defaultStack"/>
  <action name="" >
    <result type="redirectAction">
      <param name="actionName">actionname</param>
      <param name="namespace">/namespace</param>
    </result>
  </action>
</package>

Apache struts 2.3.12 just displays the directory content instead of redirecting to the /namespace/actionname
action. URL: http://localhost:8080/

if I change the libraries struts2-core and xwork-core to an older version (2.3.8), it works
just fine. It redirects the url http://localhost:8080/ to http://localhost:8080/namespace/actionname.html



    
> Empty action names will be ignored
> ----------------------------------
>
>                 Key: WW-4033
>                 URL: https://issues.apache.org/jira/browse/WW-4033
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.3.12
>         Environment: Windows 7 x64, Eclipse, Jetty 9 (embedded)
>            Reporter: David
>
> Empty action names doesnt work anymore. In struts 2.3.8 and below it works as expected.
> Sample package:
> <constant name="struts.action.extension" value="html,"/> 
> <package name="default" extends="struts-default" namespace="/">
>   <default-interceptor-ref name="defaultStack"/>
>   <action name="" >
>     <result type="redirectAction">
>       <param name="actionName">actionname</param>
>       <param name="namespace">/namespace</param>
>     </result>
>   </action>
> </package>
> Apache struts 2.3.12 just displays the directory content instead of redirecting to the
/namespace/actionname action. URL: http://localhost:8080/
> if I change the libraries struts2-core and xwork-core to an older version (2.3.8), it
works just fine. It redirects the url http://localhost:8080/ to http://localhost:8080/namespace/actionname.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message