commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ricky Martin (JIRA)" <>
Subject [jira] Created: (CONFIGURATION-418) incorrect backslash parsing
Date Mon, 31 May 2010 14:50:37 GMT
incorrect backslash parsing

                 Key: CONFIGURATION-418
             Project: Commons Configuration
          Issue Type: Bug
    Affects Versions: 1.6
         Environment: Commons Configuration 1.6
            Reporter: Ricky Martin
            Priority: Minor

I am using Commons Configuration (PropertiesConfiguration) and some of my data are windows
shares: \\share1 or \\share2. The problem is the parsing return different things depending
how the keys are defined. For example, these keys


are different than:

share=\\\\share1, \\\\share2

The first one returns two backslashes ("\\share1" and "\\share2") and the second returns just
one ("\share1" and "\share2"). I think the problem is in PropertyConverter line 525, cos the
backslash is hidden twice when multivalue parsing is done:

if (c != delimiter && c != LIST_ESC_CHAR) 
                    // no, also add escape character

In my understanding the second condition produces this strange issue and it should be like

if (c != delimiter) 
                    // no, also add escape character

Check that cos I can be missing something...


This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message