Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8427

camel-scala - Testing with useOverridePropertiesWithPropertiesComponent issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.15.0
    • 2.15.0
    • camel-test
    • None
    • Unknown

    Description

      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:

      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)
      

      Attachments

        1. 2_15_SNAPSHOT.zip
          316 kB
          Shreyas Purohit

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              shreyaspurohit Shreyas Purohit
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: