Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
The JSR 286 spec states that the HttpServletRequest.getAttributeNames must provide the same functionality as the corresponding portlet request function. This fails for all portlet requests, both when a servlet is included and when it is the target of a forward. Failing test cases:
V2DispatcherReqRespTests2_SPEC2_19_ForwardServletRenderRequest_getAttributeNames
V2DispatcherReqRespTests2_SPEC2_19_ForwardServletEventRequest_getAttributeNames
V2DispatcherReqRespTests2_SPEC2_19_ForwardServletActionRequest_getAttributeNames
V2DispatcherReqRespTests2_SPEC2_19_ForwardServletResourceRequest_getAttributeNames
V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionRequest_getAttributeNames
... etc. (all "getAttributeNames" tests fail)
Example failure text:
V2DispatcherReqRespTests2_SPEC2_19_ForwardServletRenderRequest_getAttributeNames results:
Test Failed
Details: In a target servlet of a forward in the Render phase, the method HttpServletRequest.getAttributeNames must provide the same functionality as RenderRequest.getAttributeNames.
In HttpServletRequest attribute names but not in RenderRequest attribute names:
javax.servlet.forward.query_string
Pluto_tck-V2DispatcherReqRespTests2-3.0-SNAPSHOT.DispatcherReqRespTests2_SPEC2_19_ForwardServletRenderRequest!-1450703940|6_javax.portlet.config
Pluto_tck-V2DispatcherReqRespTests2-3.0-SNAPSHOT.DispatcherReqRespTests2_SPEC2_19_ForwardServletRenderRequest!-1450703940|6_req.attr.test.V2DispatcherReqRespTests2_SPEC2_19_ForwardServletRenderRequest_getAttribute
Pluto_tck-V2DispatcherReqRespTests2-3.0-SNAPSHOT.DispatcherReqRespTests2_SPEC2_19_ForwardServletRenderRequest!-1450703940|6_req.attr.tid
Pluto_tck-V2DispatcherReqRespTests2-3.0-SNAPSHOT.DispatcherReqRespTests2_SPEC2_19_ForwardServletRenderRequest!-1450703940|6_javax.portlet.response
Pluto_tck-V2DispatcherReqRespTests2-3.0-SNAPSHOT.DispatcherReqRespTests2_SPEC2_19_ForwardServletRenderRequest!-1450703940|6_req.attr.test.V2DispatcherReqRespTests2_SPEC2_19_ForwardServletRenderRequest_getAttributeNames
Pluto_tck-V2DispatcherReqRespTests2-3.0-SNAPSHOT.DispatcherReqRespTests2_SPEC2_19_ForwardServletRenderRequest!-1450703940|6_javax.portlet.request
In RenderRequest attribute names but not in HttpServletRequest attribute names:
javax.servlet.include.servlet_path
javax.servlet.forward.path_info
javax.servlet.include.context_path
javax.servlet.include.request_uri