Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
2.3.24
-
None
-
tomcat
Description
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:
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()); }