struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4585) Struts2 Rest plugin doesnt handle JSESSIONID
Date Thu, 14 Jan 2016 18:09:40 GMT

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

ASF subversion and git services commented on WW-4585:
-----------------------------------------------------

Commit e0003f0471f98d5986844cd799555618aae88fce in struts's branch refs/heads/master from
[~aleksandr-m]
[ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=e0003f0 ]

WW-4585 Struts2 Rest plugin doesn't handle JSESSIONID with DMI


> Struts2 Rest plugin doesnt handle JSESSIONID
> --------------------------------------------
>
>                 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 P Peters, II
>            Assignee: Aleksandr Mashchenko
>            Priority: Blocker
>             Fix For: 2.3.25, 2.5
>
>         Attachments: RestActionMapper.java
>
>
> If a url 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 testGetJsessionIdSemicolonMapping() throws Exception {
>         req.setRequestURI("/myapp/animals/dog/fido;jsessionid=29fefpv23do1g");
>         req.setServletPath("/animals/dog/fido");
>         req.setMethod("GET");
>         ActionMapping mapping = mapper.getMapping(req, configManager);
>         assertEquals("/animals", mapping.getNamespace());
>         assertEquals("dog", mapping.getName());
>         assertEquals("fido", ((String[]) mapping.getParams().get("id"))[0]);
>         assertEquals("show", mapping.getMethod());
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message