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

BlueprintPropertiesParser breaks propertyPlaceholder fallbackToUnaugmentedProperty behavior

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.15.1
    • 2.17.3, 2.18.0
    • camel-blueprint
    • Patch Available
    • Novice

    Description

      When BlueprintPropertiesParser parses an "augmented" property key that is not found (i.e. value is null), it does not return the null value so that the fallbackToUnaugmentedProperty="true" (default) behavior can run. Instead, it immediately throws an IllegalArgumentException.
      As a result, it appears to be impossible to take advantage of fallbackToUnaugmentedProperty="true" behavior when using the Blueprint properties resolver/parser.
      I discovered this against Red Hat's JBoss Fuse impl of Camel, but am reporting it here because it appears to be a bug in base Camel. More details in comments.

      Attachments

        1. CAMEL-10038.patch
          1 kB
          Matthew Zipay
        2. example.bpp.fallback.cfg
          0.4 kB
          Matthew Zipay
        3. camel-context.xml
          3 kB
          Matthew Zipay

        Issue Links

          Activity

            People

              ggrzybek Grzegorz Grzybek
              MattZ Matthew Zipay
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: