You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Joerg Schaible (JIRA)" <ji...@apache.org> on 2011/04/29 08:02:03 UTC

[jira] [Commented] (CONFIGURATION-448) INI config can't have = in the value when using : seperators

    [ https://issues.apache.org/jira/browse/CONFIGURATION-448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13026868#comment-13026868 ] 

Joerg Schaible commented on CONFIGURATION-448:
----------------------------------------------

Using ':' as key separator is actually not really defined. It's not supported by Windows and is based on extensions other companies/people made. Therefore I can understand that the current implementation gives '=' more precedence. However, you should be able to quote the value:

{noformat}
password: "abc=123:D"
{noformat}

Nevertheless, the implementation could be smarter in this case, since spaces are not allowed in the key and it could look for the separator character in the first character sequence containing no spaces.

> INI config can't have = in the value when using : seperators
> ------------------------------------------------------------
>
>                 Key: CONFIGURATION-448
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-448
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.6
>            Reporter: Mike Deeks
>
> If I load an INI file with these values:
> username: identity
> password: abc=123:D
> It actually considers the second line to have the key "password: abc" and the value "123:G". 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira