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

Make RedirectViews use RESPONSE_STATUS_ATTRIBUTE as a response status if defined

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.1.7
    • Fix Version/s: 4.2 RC3
    • Component/s: Web
    • Labels:
      None

      Description

      With SPR-11792, many defaults regarding HTTP caching policies have been updated to the latest standards.

      By default, RedirectViews have http10Compatible set to true, which means that they use HTTP 302 as a default HTTP response status. Setting this property to false make RedirectViews use HTTP 303 by default.

      Now when set to false, RedirectViews don't use the RESPONSE_STATUS_ATTRIBUTE request attribute as a response HTTP if it is available. Both configuration choices should behave the same regarding to this request attribute.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bclozel Brian Clozel
              Reporter:
              bclozel Brian Clozel
              Last updater:
              Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 1 week, 1 day ago