struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "A-pZ (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-3997) Empty action names stop working
Date Sat, 16 Mar 2013 02:52:13 GMT

    [ https://issues.apache.org/jira/browse/WW-3997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13604093#comment-13604093
] 

A-pZ commented on WW-3997:
--------------------------

I had a same problem.
An empty action ( at convention plugin : Action(value="") ) don't work and response 404(FileNotFound)
since version 2.3.10.
I thought this problem maybe changed DefaultActionMapper(org.apache.struts2.dispatcher.mapper.DefaultActionMapper)
,
exactly DefaultActionMapper#getMapping() was return null at action that set blank string.

Version 2.3.12 DefaultActionMapper#getMapping at line 316 is here.
if (StringUtils.isEmpty(mapping.getName())) { ......

Version 2.3.8 is here.
if (mapping.getName() == null) { ......

Is it necessary to change by other issue?
                
> Empty action names stop working
> -------------------------------
>
>                 Key: WW-3997
>                 URL: https://issues.apache.org/jira/browse/WW-3997
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.3.12
>            Reporter: Diego Díez
>            Priority: Blocker
>
> Empty action names stop working.
> {code:xml}
> <package name="common-root" extends="struts-default" namespace="/">
>     <action name="">
>         <result name="success" type="tiles">index</result>
>     </action>
> </package>
> {code}
> For http://localhost:8084/, tomcat return 404 status

--
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