[
https://issues.apache.org/jira/browse/CXF-5554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13902873#comment-13902873
]
Adam Jablonski commented on CXF-5554:
-------------------------------------
Thank you! The corrected checks work as expected.
> OAuth1 params not read from POST on Content-Type:
> application/x-www-form-urlencoded; charset=UTF-8
> --------------------------------------------------------------------------------------------------
>
> Key: CXF-5554
> URL: https://issues.apache.org/jira/browse/CXF-5554
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS Security
> Affects Versions: 2.7.6
> Reporter: Adam Jablonski
> Assignee: Sergey Beryozkin
> Fix For: 3.0.0-milestone2, 2.7.11
>
>
> I've tracked the problem down to method: OAuthUtils.addParametersIfNeeded()
> {code:java}
> if (params.isEmpty()
> &&
> MediaType.APPLICATION_FORM_URLENCODED.equals(oAuthMessage.getBodyType())) {
> {code}
> oAuthMessage.getBodyType() returns full header value including additional
> parameters, so "Content-Type: application/x-www-form-urlencoded;
> charset=UTF-8" does not match MediaType.APPLICATION_FORM_URLENCODED
> This form of Content-type header is valid as stated in:
> https://tools.ietf.org/html/rfc2616#section-3.7
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)