You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/11/03 08:56:00 UTC
[jira] [Updated] (CAMEL-17159) rest-dsl - clientRequestValidation
fails then operation produces more than just xml and/or json
[ https://issues.apache.org/jira/browse/CAMEL-17159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-17159:
--------------------------------
Summary: rest-dsl - clientRequestValidation fails then operation produces more than just xml and/or json (was: clientRequestValidation fails then operation produces more than just xml and/or json)
> rest-dsl - clientRequestValidation fails then operation produces more than just xml and/or json
> -----------------------------------------------------------------------------------------------
>
> Key: CAMEL-17159
> URL: https://issues.apache.org/jira/browse/CAMEL-17159
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 3.11.3
> Reporter: Henrik Karlsson
> Priority: Minor
> Fix For: 3.13.0, 3.11.4
>
> Attachments: image-2021-11-02-19-36-21-437.png, image.png, image.png
>
>
> We an openapi api with an operation that produces both application/json and application/csv. When setting clientRequestValidation=true requests with Accept=application/csv fails with status 406.
> This happens because the method isValidOrAcceptedContentType in RestBindingAdvice only accepts a content type containing 'json' if parameter valid contains 'json' even if other content types are included.
> !image-2021-11-02-19-36-21-437.png!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)