Skip to content

Wrong assertion message in ShallowEtagHeaderFilter [SPR-13194] #17786

@spring-projects-issues

Description

@spring-projects-issues

Matt Byrne opened SPR-13194 and commented

Looking at the source of https://github.com/spring-projects/spring-framework/blob/master/spring-web/src/main/java/org/springframework/web/filter/ShallowEtagHeaderFilter.java

The assertion error seems incorrect

ContentCachingResponseWrapper responseWrapper =
				WebUtils.getNativeResponse(response, ContentCachingResponseWrapper.class);
		Assert.notNull(responseWrapper, "ShallowEtagResponseWrapper not found");

Should be "ContentCachingResponseWrapper not found".


Referenced from: commits 2c32873, 85a80e2

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions