INIConfiguration: Quoted values should not be trimmed
-----------------------------------------------------

                 Key: CONFIGURATION-306
                 URL: https://issues.apache.org/jira/browse/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="[EMAIL PROTECTED] ~]$ "

In Commons Configuration 1.4, this incorrectly reads in as "[EMAIL PROTECTED] 
~]$ ".  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.

Reply via email to