Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-15423

ForwardedHeaderRequestWrapper should return a new StringBuffer instance on each invocation of the getRequestURL method

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.3.7, 5.0 M5
    • Fix Version/s: 4.3.8, 5.0 RC1
    • Component/s: Web
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      ForwardedHeaderFilter returns the same StringBuffer for every invocation. This means that if the resulting StringBuffer is modified it changes the state of the HttpServletRequest.

      Instead a new StringBuffer should be returned for every invocation.

        Attachments

          Activity

            People

            • Assignee:
              rwinch Rob Winch
              Reporter:
              bryank Bryan Kelly
              Last updater:
              St├ęphane Nicoll
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 2 weeks ago