This is an automated email from the ASF dual-hosted git repository.
klease pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new f720628 CAMEL-17890: fix handling of component, language or
data-format properties with a dash. (#7311)
f720628 is described below
commit f720628621a6d955a8637253e736db3043d17bf6
Author: klease <[email protected]>
AuthorDate: Thu Mar 31 19:13:13 2022 +0200
CAMEL-17890: fix handling of component, language or data-format properties
with a dash. (#7311)
Remove initial mapping using optionKey when loading property keys; this is
done in computerProperties.
---
.../camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
b/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
index 66fda5c..528d31d 100644
--- a/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
+++ b/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
@@ -1380,7 +1380,7 @@ public abstract class BaseMainSupport extends BaseService
{
// load properties from properties component (override existing)
OrderedLocationProperties propPC = (OrderedLocationProperties)
camelContext.getPropertiesComponent()
- .loadProperties(name -> name.startsWith("camel."),
MainHelper::optionKey);
+ .loadProperties(name -> name.startsWith("camel."));
prop.putAll(propPC);
// load properties from ENV (override existing)