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 2017/07/11 08:48:00 UTC

[jira] [Commented] (CAMEL-11523) JasyptPropertiesParser fails on properties references with default value

    [ https://issues.apache.org/jira/browse/CAMEL-11523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16081889#comment-16081889 ] 

Claus Ibsen commented on CAMEL-11523:
-------------------------------------

I wonder if you are able to build an unit test / sample project that reproduces this issue? That would make it easier for us to use and track down the bug/issue.

> JasyptPropertiesParser fails on properties references with default value
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-11523
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11523
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jasypt
>    Affects Versions: 2.17.7, 2.19.1
>            Reporter: Ronny Aerts
>
> I'm using the JasyptPropertiesParser in combination with the BridgePropertyPlaceholderConfigurer to able to encrypt properties by adding the parser property.
>              <beans:property name="parser">
>                     <!-- define the jasypt properties parser with the given password to be used -->
>                     <beans:bean class="org.apache.camel.component.jasypt.JasyptPropertiesParser" depends-on="InitializeProperties">
>                            <beans:property name="password" value="#{IP.getPassword()}"/>
>                            <beans:property name="algorithm" value="PBEWITHSHA1ANDRC4_128"/>
>                     </beans:bean>
>              </beans:property>
> This works fine but when I have a "tris.dlq.folder.process.history:c:/temp/TrisESB" property with a default value in my xml route, the route creating fails with error:
> Caused by: java.lang.IllegalArgumentException: PropertiesComponent with name properties must be defined in CamelContext to support property placeholders. Property with key [tris.dlq.folder.process.history:c:/temp/TrisESB] not found in properties from text: file://{{tris.dlq.folder.process.history:c:/temp/TrisESB}}?fileName=$simple{header.breadcrumbId}-prochist.htm
> My log also mentions the parsing of the property.
> [TRACE] [org.apache.camel.component.jasypt.JasyptPropertiesParser] Parsing property 'tris.dlq.folder.process.history:c:/temp/TrisESB=null'
> It seems that the JasyptPropertiesParser can't handle default properties.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)