eclipse-ee4j / eclipse-ee4j/jersey

WebComponent.filterFormParameters reports confusing warning

Open
#4,288 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

We see a lot of these warnings in our logs:

> org.glassfish.jersey.servlet.WebComponent: A servlet request to the URI https://example.com/foo?bar=baz contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected

It is a POST request with a query parameter and an empty post-body.
I don't think that any filter is consuming the request body or accessing the request parameters.

Is it possible that the warning is wrong in this case?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.