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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

JIRA issues@jboss.org
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)
_______________________________________________
cdi-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/cdi-dev

Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.
Loading...