Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

platform-http form name not sent during multipart upload #5981

Closed
Serkan80 opened this issue Apr 8, 2024 · 2 comments
Closed

platform-http form name not sent during multipart upload #5981

Serkan80 opened this issue Apr 8, 2024 · 2 comments
Assignees
Labels
area/platform-http bug Something isn't working
Milestone

Comments

@Serkan80
Copy link

Serkan80 commented Apr 8, 2024

Bug description

I'm using platformHttp as a consumer and I'm sending a multipart request with file upload. The form name attribute of form-data is not set in Camel, see also attachments below and the reproducer url.

The multipart request:
camel-multipart-02

The content of AttachmentObject:
camel-multipart-01

The content of exchange.getMessage():
camel-multipart-03

Reproducer url:
https://github.com/Serkan80/quarkus-issue-reproducers/tree/master/http-path-permission-issue

Current behaviour:
the filename is set as the form name.

Expected behaviour:
form name should be the name what comes in from the http request form-name attribute. In this case form-name should be "file".

@Serkan80 Serkan80 added the bug Something isn't working label Apr 8, 2024
@jamesnetherton jamesnetherton changed the title form name not sent during multipart file upload platform-http form name not sent during multipart upload Apr 12, 2024
@jamesnetherton
Copy link
Contributor

I created a Camel ticket: https://issues.apache.org/jira/browse/CAMEL-20670.

@jamesnetherton jamesnetherton self-assigned this Apr 15, 2024
@jamesnetherton
Copy link
Contributor

Fixed by af662f7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform-http bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants