You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "squakez (via GitHub)" <gi...@apache.org> on 2025/11/18 14:35:24 UTC
[PR] feat(core): remove exchanges deprecated constants [camel]
squakez opened a new pull request, #19963:
URL: https://github.com/apache/camel/pull/19963
They have been deprecated long ago and no internal code is making use of those constants any longer.
More details in the files changes.
# Description
<!--
- Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
-->
# Target
- [ ] I checked that the commit is targeting the correct branch (Camel 4 uses the `main` branch)
# Tracking
- [ ] If this is a large change, bug fix, or code improvement, I checked there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it).
<!--
# *Note*: trivial changes like, typos, minor documentation fixes and other small items do not require a JIRA issue. In this case your pull request should address just this issue, without pulling in other changes.
-->
# Apache Camel coding standards and style
- [ ] I checked that each commit in the pull request has a meaningful subject line and body.
<!--
If you're unsure, you can format the pull request title like `[CAMEL-XXX] Fixes bug in camel-file component`, where you replace `CAMEL-XXX` with the appropriate JIRA issue.
-->
- [ ] I have run `mvn clean install -DskipTests` locally from root folder and I have committed all auto-generated changes.
<!--
You can run the aforementioned command in your module so that the build auto-formats your code. This will also be verified as part of the checks and your PR may be rejected if if there are uncommited changes after running `mvn clean install -DskipTests`.
You can learn more about the contribution guidelines at https://github.com/apache/camel/blob/main/CONTRIBUTING.md
-->
--
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] feat(core): remove exchanges deprecated constants [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #19963:
URL: https://github.com/apache/camel/pull/19963#issuecomment-3547902669
: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
Re: [PR] feat(core): remove exchanges deprecated constants [camel]
Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez merged PR #19963:
URL: https://github.com/apache/camel/pull/19963
--
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] feat(core): remove exchanges deprecated constants [camel]
Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on code in PR #19963:
URL: https://github.com/apache/camel/pull/19963#discussion_r2538454660
##########
components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/SoapConstants.java:
##########
@@ -19,6 +19,7 @@
public final class SoapConstants {
public static String SOAP_METHOD_NAME = "CamelSoapMethodName";
+ public static String SOAP_ACTION = "CamelSoapAction";
Review Comment:
This is for internal use only in order to support the component. The user should changes nothing.
##########
core/camel-xml-jaxp/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java:
##########
@@ -481,22 +481,10 @@ public SAXSource toSAXSourceFromStream(StreamSource source, Exchange exchange) t
XMLReader xmlReader = null;
try {
- // use the SAXPaserFactory which is set from exchange
Review Comment:
Nobody should use this in Camel 4 since a while as it was deprecated in 3.x. We should be safe removing this piece of code. The original feature was introduced in https://issues.apache.org/jira/browse/CAMEL-7721
##########
components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/integration/FtpPollEnrichBridgeErrorHandlerIT.java:
##########
@@ -95,10 +95,6 @@ public Exchange aggregate(Exchange oldExchange, Exchange newExchange) {
oldExchange.getIn().setBody(null);
oldExchange.setOut(null);
}
- // in case of exception we are bridged then we want to perform
- // redeliveries etc.
- // so we need to turn of exhausted redelivery
- oldExchange.removeProperties(Exchange.REDELIVERY_EXHAUSTED);
Review Comment:
Never used, the test passes locally.
##########
components/camel-cxf/camel-cxf-common/src/main/java/org/apache/camel/component/cxf/common/header/CxfHeaderHelper.java:
##########
@@ -50,7 +50,6 @@ public final class CxfHeaderHelper {
defineMapping(Exchange.CONTENT_TYPE, Message.CONTENT_TYPE);
defineMapping(Exchange.HTTP_CHARACTER_ENCODING, Message.ENCODING);
defineMapping(Exchange.HTTP_QUERY, Message.QUERY_STRING);
- defineMapping(Exchange.ACCEPT_CONTENT_TYPE, Message.ACCEPT_CONTENT_TYPE);
Review Comment:
The ACCEPT_CONTENT_TYPE is never used internally. This method was a mapping, and in theory the user should have been already moved to CXF message accept content type instead.
##########
components/camel-undertow/src/main/java/org/apache/camel/component/undertow/ExchangeHeaders.java:
##########
@@ -25,6 +25,9 @@ public final class ExchangeHeaders {
public static final HttpString AUTHENTICATION = new HttpString("CamelAuthentication");
public static final HttpString AUTHENTICATION_FAILURE_POLICY_ID = new HttpString("CamelAuthenticationFailurePolicyId");
+ @Deprecated(since = "4.17.0")
Review Comment:
We could have removed as it's not in use. However, let's follow the deprecation policy and mark it now for future removal.
--
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