You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2019/09/05 07:31:00 UTC
[jira] [Updated] (CAMEL-13935) camel-properties: Properties with
types different from string are not taken into account
[ https://issues.apache.org/jira/browse/CAMEL-13935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-13935:
--------------------------------
Affects Version/s: 3.0.0.RC1
> camel-properties: Properties with types different from string are not taken into account
> ----------------------------------------------------------------------------------------
>
> Key: CAMEL-13935
> URL: https://issues.apache.org/jira/browse/CAMEL-13935
> Project: Camel
> Issue Type: Bug
> Components: camel-properties
> Affects Versions: 3.0.0.RC1
> Reporter: Luca Burgazzoli
> Priority: Minor
> Fix For: 3.0.0, 3.0.0.RC2
>
>
> The properties component spi has a setOverrideProperties that allow to use an arbitrary Properties object so it is possible that the properties it holds are not of type string.
> In case the properties component is asked to resolve a non string property, then it will fail as DefaultPropertiesLookup uses Properties::getProperty [ยน] which returns null in case of the requested property is not of type string.
> The error is a little bit misleading as it states:
> {code}
> because of PropertiesComponent with name properties must be defined in CamelContext to support property placeholders. Property with key [the.body] not found in properties from text: in.body == {{the.body}}
> {code}
> [1] https://github.com/apache/camel/blob/master/components/camel-properties/src/main/java/org/apache/camel/component/properties/DefaultPropertiesLookup.java#L40
--
This message was sent by Atlassian Jira
(v8.3.2#803003)