[cdi-dev] [JBoss JIRA] (CDI-709) Should injecting the HttpServletRequest consider all used wrappers?

Marcel Witte (JIRA) issues at jboss.org
Fri Jul 21 03:02:00 EDT 2017


Marcel Witte created CDI-709:
--------------------------------

             Summary: Should injecting the HttpServletRequest consider all used wrappers?
                 Key: CDI-709
                 URL: https://issues.jboss.org/browse/CDI-709
             Project: CDI Specification Issues
          Issue Type: Clarification
          Components: Java EE integration
    Affects Versions: 2.0 .Final
            Reporter: Marcel Witte


For example see this bug report of rewrite: https://github.com/ocpsoft/rewrite/issues/235

If you inject the HttpServletRequest:
{code:java}
@Inject
private HttpServletRequest request
{code}
then you do not get the latest created HttpServletRequestWrapper.

If the wrapper is modifying the request (like adding parameters), these changes would not be visible to the application code using this injected request.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the cdi-dev mailing list