Skip to content

InterceptingHttpAccessor.setInterceptors should support immutable lists [SPR-16137] #20685

@spring-projects-issues

Description

@spring-projects-issues

Joakim Lindberg opened SPR-16137 and commented

When upgrading from org.springframework:spring-web:4.2.4.RELEASE our httpinterceptors stopped working because we used immutable list as input to InterceptingHttpAccessor.setInterceptors. That method now use AnnotationAwareOrderComparator.sort(interceptors) and in extent Collections.sort which is not side effect free.

InterceptingHttpAccessor.setInterceptors should use a copied list to sort on.


Affects: 5.0 GA, 5.0.1

Issue Links:

Referenced from: commits d06129d

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions