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

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.0.13
    • Fix Version/s: None
    • Component/s: logback-classic
    • Environment:

      Java, Spring

      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

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

              Dates

              • Created:
                Updated: