Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-709

Should injecting the HttpServletRequest consider all used wrappers?

XMLWordPrintable

    • Icon: Clarification Clarification
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 2.0 .Final
    • Java EE integration
    • None

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

      If you inject the HttpServletRequest:

      @Inject
      private HttpServletRequest request
      

      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.

              Unassigned Unassigned
              balta3 Marcel Witte (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: