Skip to content

Infinite InputStream #5977

@dimayasyuk

Description

@dimayasyuk

After updating the spring boot from 3.1.6 to 3.5.0 a new version of jersey started coming 3.1.3->3.1.10.

Image

The endpoint above consumes a cql file whose size is about 44KB. But the incoming InputStream is infinite somehow so finally I am getting OOM. It worked before upgrade
Actually any file content leads to this behavior

Image

it happens because I wrap the original HttpServletRequest to CachedHttpServletRequest to log the body

Image Image Image

See https://www.baeldung.com/spring-reading-httpservletrequest-multiple-times

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions