commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Smith (JIRA)" <>
Subject [jira] Created: (CONFIGURATION-306) INIConfiguration: Quoted values should not be trimmed
Date Fri, 01 Feb 2008 19:25:11 GMT
INIConfiguration: Quoted values should not be trimmed

                 Key: CONFIGURATION-306
             Project: Commons Configuration
          Issue Type: Bug
    Affects Versions: 1.5
         Environment: N/A
            Reporter: John Smith

I am reading in .ini files with quoted strings.  Here is an example of a line:

CmdPrompt="[sdog@rosco ~]$ "

In Commons Configuration 1.4, this incorrectly reads in as "[sdog@rosco ~]$ ".  When I saw
that this had been addressed in 1.5, I was excited... until I started using 1.5.  Now I don't
get quotes, but I also don't get my trailing space, which is the reason I'm using quotes in
the first place.  I expect the offending line is the final line in the parseValue(String)
method of INIConfiguration:

line 403:
        return result.toString().trim();

Expected behavior: INIConfiguration should read in the exact string between the quotes, not
a trimmed version.

I'm going back to 1.4 and my own code to strip the quotes.  Please address this as I cannot
move to future versions without it.

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

View raw message