Skip to content

AbstractHttpMessageConverter + ShallowEtagHeaderFilter + manual ETag = ❌ #34819

@cfredri4

Description

@cfredri4

I'm doing the following:

  • Using ShallowEtagHeaderFilter
  • Manually setting ETag header (because the response body contains random elements which should not be included in ETag so it cannot be generated by ShallowEtagHeaderFilter)
  • Having a converter which extends AbstractHttpMessageConverter

But ShallowEtagHeaderFilter returns the raw output stream if ETag header is already set, and AbstractHttpMessageConverter flushes the output stream, which commits the response so it cannot be updated to return 304+no body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions