struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rich P Peters, II (JIRA)" <>
Subject [jira] [Created] (WW-4585) Struts2 Rest plugin doesnt handle JSESSIONID
Date Tue, 12 Jan 2016 18:22:39 GMT
Rich P Peters, II created WW-4585:

             Summary: Struts2 Rest plugin doesnt handle JSESSIONID
                 Key: WW-4585
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - REST
    Affects Versions: 2.3.24
         Environment: tomcat
            Reporter: Rich P Peters, II
            Priority: Blocker

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:
    public void testGetJsessionIdSemicolonMapping() throws Exception {

        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());

This message was sent by Atlassian JIRA

View raw message