You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Henrik Karlsson (Jira)" <ji...@apache.org> on 2021/11/02 18:38:00 UTC

[jira] [Updated] (CAMEL-17159) 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 ]

Henrik Karlsson updated CAMEL-17159:
------------------------------------
    Attachment: image.png

> 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.1, 3.11.2, 3.11.0, 3.11.3
>            Reporter: Henrik Karlsson
>            Priority: Major
>         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)