[jira] [Commented] (WW-4729) ServletDispatcherResult can't handle parameters anymore
[ https://issues.apache.org/jira/browse/WW-4729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15978284#comment-15978284 ] Michael Hintenaus commented on WW-4729: --- https://issues.apache.org/jira/browse/WW-4788 > ServletDispatcherResult can't handle parameters anymore > --- > > Key: WW-4729 > URL: https://issues.apache.org/jira/browse/WW-4729 > Project: Struts 2 > Issue Type: Bug > Components: Core Results >Affects Versions: 2.5.5, 2.5.8 >Reporter: Michael Hintenaus >Assignee: Lukasz Lenart > Fix For: 2.5.10 > > > I have an action like this > {code:title=Bar.java|borderStyle=solid} > @Action(value = "execute", results = @Result(name = SUCCESS, type = > DISPATCHER, location = "index.jsp?foo=bar")) > public String execute() { > return super.execute(); > } > {code} > which leads to an error in the ServletDispatcherResult > {noformat} > java.lang.IllegalAccessError: HttpParameters are immutable, you cannot put > values directly! > at > org.apache.struts2.dispatcher.HttpParameters.putAll(HttpParameters.java:132) > at > org.apache.struts2.result.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:148) > at > org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:208) >at > com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:366) > at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:270) > > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (WW-4729) ServletDispatcherResult can't handle parameters anymore
[ https://issues.apache.org/jira/browse/WW-4729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15978208#comment-15978208 ] Lukasz Lenart commented on WW-4729: --- Could you open a new ticket and add an example configuration? > ServletDispatcherResult can't handle parameters anymore > --- > > Key: WW-4729 > URL: https://issues.apache.org/jira/browse/WW-4729 > Project: Struts 2 > Issue Type: Bug > Components: Core Results >Affects Versions: 2.5.5, 2.5.8 >Reporter: Michael Hintenaus >Assignee: Lukasz Lenart > Fix For: 2.5.10 > > > I have an action like this > {code:title=Bar.java|borderStyle=solid} > @Action(value = "execute", results = @Result(name = SUCCESS, type = > DISPATCHER, location = "index.jsp?foo=bar")) > public String execute() { > return super.execute(); > } > {code} > which leads to an error in the ServletDispatcherResult > {noformat} > java.lang.IllegalAccessError: HttpParameters are immutable, you cannot put > values directly! > at > org.apache.struts2.dispatcher.HttpParameters.putAll(HttpParameters.java:132) > at > org.apache.struts2.result.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:148) > at > org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:208) >at > com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:366) > at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:270) > > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (WW-4729) ServletDispatcherResult can't handle parameters anymore
[ https://issues.apache.org/jira/browse/WW-4729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15978196#comment-15978196 ] Michael Hintenaus commented on WW-4729: --- before Version 2.5.5 the parameters where accessible via #parameters (example: #parameters.foo) now I won't get the parameters which are defined via location, only the request parameters > ServletDispatcherResult can't handle parameters anymore > --- > > Key: WW-4729 > URL: https://issues.apache.org/jira/browse/WW-4729 > Project: Struts 2 > Issue Type: Bug > Components: Core Results >Affects Versions: 2.5.5, 2.5.8 >Reporter: Michael Hintenaus >Assignee: Lukasz Lenart > Fix For: 2.5.10 > > > I have an action like this > {code:title=Bar.java|borderStyle=solid} > @Action(value = "execute", results = @Result(name = SUCCESS, type = > DISPATCHER, location = "index.jsp?foo=bar")) > public String execute() { > return super.execute(); > } > {code} > which leads to an error in the ServletDispatcherResult > {noformat} > java.lang.IllegalAccessError: HttpParameters are immutable, you cannot put > values directly! > at > org.apache.struts2.dispatcher.HttpParameters.putAll(HttpParameters.java:132) > at > org.apache.struts2.result.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:148) > at > org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:208) >at > com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:366) > at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:270) > > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (WW-4729) ServletDispatcherResult can't handle parameters anymore
[ https://issues.apache.org/jira/browse/WW-4729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15787735#comment-15787735 ] Hudson commented on WW-4729: SUCCESS: Integrated in Jenkins build Struts-JDK7-master #575 (See [https://builds.apache.org/job/Struts-JDK7-master/575/]) WW-4729 Fixes issue with passing params in location (lukaszlenart: rev 3144b6c995eedf213f5908cc687760ddb32bc98f) * (edit) core/src/main/java/org/apache/struts2/result/ServletDispatcherResult.java * (edit) core/src/test/java/org/apache/struts2/result/ServletDispatcherResultTest.java > ServletDispatcherResult can't handle parameters anymore > --- > > Key: WW-4729 > URL: https://issues.apache.org/jira/browse/WW-4729 > Project: Struts 2 > Issue Type: Bug > Components: Core Results >Affects Versions: 2.5.5, 2.5.8 >Reporter: Michael Hintenaus >Assignee: Lukasz Lenart > Fix For: 2.5.next > > > I have an action like this > {code:title=Bar.java|borderStyle=solid} > @Action(value = "execute", results = @Result(name = SUCCESS, type = > DISPATCHER, location = "index.jsp?foo=bar")) > public String execute() { > return super.execute(); > } > {code} > which leads to an error in the ServletDispatcherResult > {noformat} > java.lang.IllegalAccessError: HttpParameters are immutable, you cannot put > values directly! > at > org.apache.struts2.dispatcher.HttpParameters.putAll(HttpParameters.java:132) > at > org.apache.struts2.result.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:148) > at > org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:208) >at > com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:366) > at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:270) > > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (WW-4729) ServletDispatcherResult can't handle parameters anymore
[ https://issues.apache.org/jira/browse/WW-4729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15787691#comment-15787691 ] ASF subversion and git services commented on WW-4729: - Commit 3144b6c995eedf213f5908cc687760ddb32bc98f in struts's branch refs/heads/master from [~lukaszlenart] [ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=3144b6c ] WW-4729 Fixes issue with passing params in location > ServletDispatcherResult can't handle parameters anymore > --- > > Key: WW-4729 > URL: https://issues.apache.org/jira/browse/WW-4729 > Project: Struts 2 > Issue Type: Bug > Components: Core Results >Affects Versions: 2.5.5, 2.5.8 >Reporter: Michael Hintenaus > Fix For: 2.5.next > > > I have an action like this > {code:title=Bar.java|borderStyle=solid} > @Action(value = "execute", results = @Result(name = SUCCESS, type = > DISPATCHER, location = "index.jsp?foo=bar")) > public String execute() { > return super.execute(); > } > {code} > which leads to an error in the ServletDispatcherResult > {noformat} > java.lang.IllegalAccessError: HttpParameters are immutable, you cannot put > values directly! > at > org.apache.struts2.dispatcher.HttpParameters.putAll(HttpParameters.java:132) > at > org.apache.struts2.result.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:148) > at > org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:208) >at > com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:366) > at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:270) > > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)