You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Shreyas Purohit (JIRA)" <ji...@apache.org> on 2015/03/03 08:00:20 UTC

[jira] [Comment Edited] (CAMEL-8427) camel-scala - Testing with useOverridePropertiesWithPropertiesComponent issue

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

Shreyas Purohit edited comment on CAMEL-8427 at 3/3/15 7:00 AM:
----------------------------------------------------------------

This worked: https://gist.github.com/anonymous/5ce76593ad61b67e2b73, I understand what you meant. 

Is this a bug or is it expected to work like this going forwards? Also, surprised that it started breaking just now for me but the related bug CAMEL-7644 has been from a long time.


was (Author: shreyaspurohit):
This worked: https://gist.github.com/anonymous/5ce76593ad61b67e2b73, I understand what you meant. 

Is this a bug or is it expected to work like this going forwards?

> camel-scala - Testing with useOverridePropertiesWithPropertiesComponent issue
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-8427
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8427
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-test
>    Affects Versions: 2.15.0
>            Reporter: Shreyas Purohit
>            Assignee: Claus Ibsen
>            Priority: Minor
>         Attachments: 2_15_SNAPSHOT.zip
>
>
> A very simple project has been attached. The SFTP route has some properties which are being provided by using 'useOverridePropertiesWithPropertiesComponent' in CamelTestSupport. The test used to work fine before the latest March 2nd snapshot. It works with 2.14.1 version too. Now it fails with: 
> {code}
> Caused by: java.lang.IllegalArgumentException: PropertiesComponent with name properties must be defined in CamelContext to support property placeholders. Property with key [sftp.userName] not found in properties from text: sftp://{{sftp.userName}}@{{sftp.hostname}}{{sftp.folder}}?moveFailed={{sftp.moveFailedFolder}}&privateKeyFile={{sftp.privateKeyFile}}&privateKeyPassphrase={{sftp.privateKeyPassphrase}}&readLock=changed&readLockCheckInterval=10000&readLockTimeout=40000&streamDownload=true&fastExistsCheck=true&idempotent=true&useFixedDelay=true&delete=true&recursive=true&stepwise=false
> 	at org.apache.camel.component.properties.DefaultPropertiesParser$ParsingContext.getPropertyValue(DefaultPropertiesParser.java:268)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)