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

DefaultPropertiesParser does not support the system properties mode

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.15.1, 2.15.2
    • Fix Version/s: 2.16.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer
      is delegating the property parsing for camelContext to DefaultPropertiesParser.
      DefaultPropertiesParse does not have support for System Properties Mode such as OVERRIDE, FALLBACK.

      It's always taking System properties over provided properties. (OVERRIDE Mode)

      DefaultPropertiesParser Line 299

      private String doGetPropertyValue(String key) {
                  String value = System.getProperty(key);
                  if (value != null) {
                      log.debug("Found a JVM system property: {} with value: {} to be used.", key, value);
                  } else if (properties != null) {
                      value = properties.getProperty(key);
                  }
                  return parseProperty(key, value, properties);
              }
      

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              chikim79 Chi Kim
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: