commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CONFIGURATION-306) INIConfiguration: Quoted values should not be trimmed
Date Sat, 09 Feb 2008 16:54:07 GMT

     [ https://issues.apache.org/jira/browse/CONFIGURATION-306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oliver Heger resolved CONFIGURATION-306.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6

Should be fixed now in subversion. Thanks for spotting this.

> 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
>            Assignee: Oliver Heger
>             Fix For: 1.6
>
>
> 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.


Mime
View raw message