You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2016/07/15 14:12:23 UTC
[jira] [Commented] (WW-4585) Struts2 Rest plugin doesn't handle
JSESSIONID with DMI
[ https://issues.apache.org/jira/browse/WW-4585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15379442#comment-15379442 ]
Hudson commented on WW-4585:
----------------------------
SUCCESS: Integrated in Struts-JDK7-master #495 (See [https://builds.apache.org/job/Struts-JDK7-master/495/])
WW-4585 Struts2 Rest plugin doesn't handle JSESSIONID with DMI (lukaszlenart: rev 5eaef08e52fbb46e1659b46435172d8e52b8b090)
* plugins/rest/src/test/java/org/apache/struts2/rest/RestActionMapperTest.java
* plugins/rest/src/main/java/org/apache/struts2/rest/RestActionMapper.java
> Struts2 Rest plugin doesn't handle JSESSIONID with DMI
> ------------------------------------------------------
>
> Key: WW-4585
> URL: https://issues.apache.org/jira/browse/WW-4585
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - REST
> Affects Versions: 2.3.24
> Environment: tomcat
> Reporter: Rich Peters
> Assignee: Aleksandr Mashchenko
> Priority: Blocker
> Fix For: 2.3.28, 2.5
>
> Attachments: RestActionMapper.java
>
>
> If a url with DMI and with a JSESSIONID is sent to a Struts2 action, a failure will result
> see this modified unit test from the plugin unit test:
> {code:java}
> public void testGetJsessionIdSemicolonMappingWithMethod() throws Exception {
> req.setRequestURI("/myapp/animals/dog/fido!update;jsessionid=29fefpv23do1g");
> req.setServletPath("/animals/dog/fido");
> req.setMethod("GET");
> mapper.setAllowDynamicMethodCalls("true");
> ActionMapping mapping = mapper.getMapping(req, configManager);
> assertEquals("/animals", mapping.getNamespace());
> assertEquals("dog", mapping.getName());
> assertEquals("fido", ((String[]) mapping.getParams().get("id"))[0]);
> assertEquals("update", mapping.getMethod());
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)