[logback-dev] [JIRA] (LOGBACK-1461) Tokenizer splits values containing special characters during variable substitution

QOS.CH (JIRA) noreply-jira at qos.ch
Tue Mar 19 17:58:04 CET 2019


Marek Šabo created LOGBACK-1461:
-----------------------------------

             Summary: Tokenizer splits values containing special characters during variable substitution
                 Key: LOGBACK-1461
                 URL: https://jira.qos.ch/browse/LOGBACK-1461
             Project: logback
          Issue Type: Bug
          Components: logback-core
    Affects Versions: 1.2.3
            Reporter: Marek Šabo
            Assignee: Logback dev list


{code:java}
<property name="pass_ok" value="myPassWith123#]@&"/>
<property name="pass_split" value="myPassWith123}]@&"/>
{code}
Second password contains right curly brace which

_ch.qos.logback.core.subst.Tokenizer_ uses a split-point. I guess all special chars from method 

_Tokenizer#handleLiteralState(..)_ ** will result in the same behavior: *$* *:* *\{* *}*

I couldn't figure out how to escape the values properly. Tried approach with escaping from Layout Patterns, didn't help.



--
This message was sent by Atlassian JIRA
(v7.3.1#73012)


More information about the logback-dev mailing list