Skip to content

Quote if necessary Etags set with ResponseEntity builder API [SPR-13378] #17960

@spring-projects-issues

Description

@spring-projects-issues

Brian Clozel opened SPR-13378 and commented

Using ResponseEntity's builder API like the following throws an IllegalArgumentException because the ETag is not quoted "foo" nor a weak ETag W/"foo":

ResponseEntity<Void> responseEntity = ResponseEntity.ok().eTag("foo").build();

Affects: 4.2 GA

Referenced from: commits 88405be

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