Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-908

Variable substitution doesn't work correctly if the variable is an empty string

    XMLWordPrintable

Details

    Description

      Variable substitution doesn't work correctly if the variable is an empty string. Example from a logback.xml file:
      <property name="MY_PASSWORD" value=""/>
      ...
      <password>${MY_PASSWORD}</password>

      The substitution in the password element didn't work correctly. Using an empty password element instead of variable substitution solved the problem:
      <password></password>

      Attachments

        Activity

          People

            logback-dev Logback dev list
            km Krzysztof Michalski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: