[ 
https://issues.apache.org/jira/browse/CXF-9134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko updated CXF-9134:
------------------------------
    Affects Version/s: 4.1.1
                       4.0.7
                       3.6.6

> When sending Multipart request do not wrap Attachment into another Attachment
> -----------------------------------------------------------------------------
>
>                 Key: CXF-9134
>                 URL: https://issues.apache.org/jira/browse/CXF-9134
>             Project: CXF
>          Issue Type: Improvement
>    Affects Versions: 3.6.6, 4.0.7, 4.1.1
>            Reporter: Andrei Bastun
>            Priority: Major
>             Fix For: 4.1.2, 4.0.8, 3.6.7
>
>
> In the ClientProxyImpl handleMultipart method creates new Attachment instance 
> for every parameter.
>  
> openapi-generator generates code that already has Attachment parameter type.
> {code}
> /**
>  * OpenAPI Petstore
>  *
>  * <p>This is a sample server Petstore server. For this sample, you can use 
> the api key `special-key` to test the authorization filters.
>  *
>  */
> public class PetApiServiceImpl implements PetApi {
> .....
>     @Override
>     public ModelApiResponse uploadFile(Long petId, String additionalMetadata, 
>  Attachment _fileDetail) {
> .....
> {code}
>  
> Wrapping Attacment into Attachment is not necessary
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to