You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "Croway (via GitHub)" <gi...@apache.org> on 2025/02/05 14:02:49 UTC
[PR] Add more headers in platform-http multipart uploads [camel]
Croway opened a new pull request, #17070:
URL: https://github.com/apache/camel/pull/17070
(no comment)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add more headers in platform-http multipart uploads [camel]
Posted by "Croway (via GitHub)" <gi...@apache.org>.
Croway commented on PR #17070:
URL: https://github.com/apache/camel/pull/17070#issuecomment-2637231653
> ah okay there was a if multipart check first - so this is fine. Just make sure on CSB that its also only added if really multipart data so its not there for anything else
yup, same for CSB, all the logic is wrapped by https://github.com/apache/camel-spring-boot/blob/b358ea9050c281f550f7fc2cee12c055c5413371/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpBinding.java#L98
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add more headers in platform-http multipart uploads [camel]
Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on code in PR #17070:
URL: https://github.com/apache/camel/pull/17070#discussion_r1943099276
##########
core/camel-api/src/main/java/org/apache/camel/Exchange.java:
##########
@@ -117,6 +117,7 @@ public interface Exchange extends VariableAware {
String CONTENT_TYPE = "Content-Type";
String COOKIE_HANDLER = "CamelCookieHandler";
String CORRELATION_ID = "CamelCorrelationId";
+ String ATTACHMENTS_SIZE = "CamelAttachmentsSize";
Review Comment:
Its the most commonly used headers - and since HTTP with attachments is fairly common then IMHO it would be okay to add here
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add more headers in platform-http multipart uploads [camel]
Posted by "Croway (via GitHub)" <gi...@apache.org>.
Croway commented on PR #17070:
URL: https://github.com/apache/camel/pull/17070#issuecomment-2637191288
> the size header should likely only be set if its > 0, as then it may be always there, also for just plain REST GET etc
The ATTACHMENTS_SIZE header is added only during a multipart request. But I do not fully understand your comment.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add more headers in platform-http multipart uploads [camel]
Posted by "Croway (via GitHub)" <gi...@apache.org>.
Croway merged PR #17070:
URL: https://github.com/apache/camel/pull/17070
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add more headers in platform-http multipart uploads [camel]
Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on code in PR #17070:
URL: https://github.com/apache/camel/pull/17070#discussion_r1943005876
##########
core/camel-api/src/main/java/org/apache/camel/Exchange.java:
##########
@@ -117,6 +117,7 @@ public interface Exchange extends VariableAware {
String CONTENT_TYPE = "Content-Type";
String COOKIE_HANDLER = "CamelCookieHandler";
String CORRELATION_ID = "CamelCorrelationId";
+ String ATTACHMENTS_SIZE = "CamelAttachmentsSize";
Review Comment:
I think there is somewhere you need to document this header, try look for some of the other headers.
##########
core/camel-api/src/main/java/org/apache/camel/Exchange.java:
##########
@@ -117,6 +117,7 @@ public interface Exchange extends VariableAware {
String CONTENT_TYPE = "Content-Type";
String COOKIE_HANDLER = "CamelCookieHandler";
String CORRELATION_ID = "CamelCorrelationId";
+ String ATTACHMENTS_SIZE = "CamelAttachmentsSize";
Review Comment:
Also put it up to A headers so its sorted
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add more headers in platform-http multipart uploads [camel]
Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on PR #17070:
URL: https://github.com/apache/camel/pull/17070#issuecomment-2637122127
the size header should likely only be set if its > 0, as then it may be always there, also for just plain REST GET etc
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add more headers in platform-http multipart uploads [camel]
Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on PR #17070:
URL: https://github.com/apache/camel/pull/17070#issuecomment-2637224839
ah okay there was a if multipart check first - so this is fine. Just make sure on CSB that its also only added if really multipart data so its not there for anything else
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add more headers in platform-http multipart uploads [camel]
Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on code in PR #17070:
URL: https://github.com/apache/camel/pull/17070#discussion_r1943031367
##########
core/camel-api/src/main/java/org/apache/camel/Exchange.java:
##########
@@ -117,6 +117,7 @@ public interface Exchange extends VariableAware {
String CONTENT_TYPE = "Content-Type";
String COOKIE_HANDLER = "CamelCookieHandler";
String CORRELATION_ID = "CamelCorrelationId";
+ String ATTACHMENTS_SIZE = "CamelAttachmentsSize";
Review Comment:
Yes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add more headers in platform-http multipart uploads [camel]
Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton commented on code in PR #17070:
URL: https://github.com/apache/camel/pull/17070#discussion_r1943011126
##########
components/camel-platform-http/src/main/docs/platform-http-component.adoc:
##########
@@ -91,6 +91,9 @@ Since Apache Camel 4.10, multipart file uploads are easier and harmonized across
* The Apache Camel message contains:
** The uploaded file in the message body
** The file name in the "CamelFileName" message header
-** The file's content type in the "Content-Type" message header
+** The file's content type in the "CamelFileContentType" message header
+** The file's size in the "CamelFileLength" message header
Review Comment:
Nitpick
```suggestion
** The file content type in the "CamelFileContentType" message header
** The file size in the "CamelFileLength" message header
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add more headers in platform-http multipart uploads [camel]
Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on code in PR #17070:
URL: https://github.com/apache/camel/pull/17070#discussion_r1943007756
##########
core/camel-api/src/main/java/org/apache/camel/Exchange.java:
##########
@@ -117,6 +117,7 @@ public interface Exchange extends VariableAware {
String CONTENT_TYPE = "Content-Type";
String COOKIE_HANDLER = "CamelCookieHandler";
String CORRELATION_ID = "CamelCorrelationId";
+ String ATTACHMENTS_SIZE = "CamelAttachmentsSize";
Review Comment:
Ah yeah add it to `ExchangePropertyKey` also and doc via `@Metadata`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add more headers in platform-http multipart uploads [camel]
Posted by "Croway (via GitHub)" <gi...@apache.org>.
Croway commented on code in PR #17070:
URL: https://github.com/apache/camel/pull/17070#discussion_r1943048054
##########
core/camel-api/src/main/java/org/apache/camel/Exchange.java:
##########
@@ -117,6 +117,7 @@ public interface Exchange extends VariableAware {
String CONTENT_TYPE = "Content-Type";
String COOKIE_HANDLER = "CamelCookieHandler";
String CORRELATION_ID = "CamelCorrelationId";
+ String ATTACHMENTS_SIZE = "CamelAttachmentsSize";
Review Comment:
https://github.com/apache/camel/pull/17070/files#diff-c4832886119fc6dd6a4a54e68c5e2740ea9ae86b8699a469648284189d51e839 like this? I do not fully understand how `ExchangePropertyKey` works, for example, FILE* related headers are not there.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add more headers in platform-http multipart uploads [camel]
Posted by "Croway (via GitHub)" <gi...@apache.org>.
Croway commented on code in PR #17070:
URL: https://github.com/apache/camel/pull/17070#discussion_r1943027494
##########
core/camel-api/src/main/java/org/apache/camel/Exchange.java:
##########
@@ -117,6 +117,7 @@ public interface Exchange extends VariableAware {
String CONTENT_TYPE = "Content-Type";
String COOKIE_HANDLER = "CamelCookieHandler";
String CORRELATION_ID = "CamelCorrelationId";
+ String ATTACHMENTS_SIZE = "CamelAttachmentsSize";
Review Comment:
mmm, I cannot find much documentation for other headers, should I annotate it with Metadata and add a description?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add more headers in platform-http multipart uploads [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #17070:
URL: https://github.com/apache/camel/pull/17070#issuecomment-2636939319
:star2: Thank you for your contribution to the Apache Camel project! :star2:
:robot: CI automation will test this PR automatically.
:camel: Apache Camel Committers, please review the following items:
* First-time contributors **require MANUAL approval** for the GitHub Actions to run
* You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot.
* You can label PRs using `build-all`, `build-dependents`, `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
* Build and test logs are available in the Summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
* :warning: Be careful when sharing logs. Review their contents before sharing them publicly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org