You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Rupert Westenthaler (Commented) (JIRA)" <ji...@apache.org> on 2011/12/22 19:23:30 UTC
[jira] [Commented] (STANBOL-437) Annoying WARNING about manipulated
requests by Servlet filter
[ https://issues.apache.org/jira/browse/STANBOL-437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13174951#comment-13174951 ]
Rupert Westenthaler commented on STANBOL-437:
---------------------------------------------
This is because of the Filter introduced for STANBOL-401. I have seen this as well have looked into it on more detail and come to the conclusion that is save.
Quote from the first resource linked below:
> It is informing you that the request entity of media type "application/
> x-www-form-urlencoded" has been consumed by the Servlet layer,
> probably by a servlet filter when one of the methods
> ServletRequest.getParameter* is called.
>
> Servlet does not distinguish between query parameters and form
> parameters when parameters are obtained. So if a form-based request
> entity is present and parameters are obtained it will consume that
> entity thus leaving Jersey with no entity to consume. So Jersey can
> only keep on working in this respect using @FormParam in conjunction
> with the Servlet parameters.
>
> Jersey cannot reliably construct bytes of the request entity because
> query and form parameters are merged together into the servlet
> parameters.
Here are some links to additional information:
* http://jersey.576304.n2.nabble.com/Jersey-log-message-re-form-parameters-being-consumed-quot-earlier-quot-td4055003.html
* http://jersey.576304.n2.nabble.com/Log-warnings-td4280745.html
*
> Annoying WARNING about manipulated requests by Servlet filter
> -------------------------------------------------------------
>
> Key: STANBOL-437
> URL: https://issues.apache.org/jira/browse/STANBOL-437
> Project: Stanbol
> Issue Type: Bug
> Components: Entity Hub
> Reporter: Fabian Christ
> Assignee: Rupert Westenthaler
> Labels: Console, Output
>
> When using Stanbol you get this warning on the console:
> A servlet POST request, to the URI http://localhost:8080/stanbol/entityhub/sites/find, 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.
> Hopefully, this is not a problem and we only need to get rid of this warning message.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira