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

BlueprintPropertiesParser breaks propertyPlaceholder fallbackToUnaugmentedProperty behavior

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.15.1
    • Fix Version/s: 2.17.3, 2.18.0
    • Component/s: camel-blueprint
    • Labels:
    • Environment:
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      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. camel-context.xml
          3 kB
          Matthew Zipay
        3. example.bpp.fallback.cfg
          0.4 kB
          Matthew Zipay

          Issue Links

            Activity

              People

              • Assignee:
                gzres Grzegorz Grzybek
                Reporter:
                MattZ Matthew Zipay
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: