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

Overriden properties ignored with SpringPropertiesParser

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.21.1, 4.1.0
    • 4.2.0
    • camel-core
    • None
    • Unknown

    Description

      DefaultPropertiesParser#parseUri ends up with DefaultPropertiesParser.java#L461 delegating to the #parseProperty implementation, even if the current found value comes from an override in DefaultPropertiesParser.java#L439 and DefaultPropertiesLookup.java#L74

      An implementation like Spring's SpringPropertiesParser.java#L35 is not aware of where the value comes from and ignores it.

      In our case this breaks functionality where we're doing context.getPropertiesComponent().setOverrideProperties(props) which we based on CamelTestSupport#useOverridePropertiesWithPropertiesComponent CamelTestSupport.java#L656 and CamelTestSupport.java#L487

      If it helps any, this used to work "correctly" in Camel 3.7.1

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            jam01 Jose Montoya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: