Skip to content

Make RedirectViews use RESPONSE_STATUS_ATTRIBUTE as a response status if defined [SPR-13208] #17800

@spring-projects-issues

Description

@spring-projects-issues

Brian Clozel opened SPR-13208 and commented

With #16413, 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.


Affects: 4.1.7

Reference URL: https://jira.spring.io/browse/SPR-13197?focusedCommentId=117313&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-117313

Issue Links:

Referenced from: commits 8e56602

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions