|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
[jira] Created: (CONFIGURATION-327) INIConfiguration Global parameters alias sectional parametersINIConfiguration Global parameters alias sectional parameters
------------------------------------------------------------- Key: CONFIGURATION-327 URL: https://issues.apache.org/jira/browse/CONFIGURATION-327 Project: Commons Configuration Issue Type: Bug Components: Documentation, Format Reporter: Charles Honton After reading the following file with INIConfiguration default = ok dotted.var1 = default [section1] dotted.var1 = foo var2 = doodle The set of sections returned by INIConfiguration.getSections() includes "dotted" and "section1". I did not expect a section "dotted". -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Updated: (CONFIGURATION-327) INIConfiguration Global parameters alias sectional parameters[ https://issues.apache.org/jira/browse/CONFIGURATION-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Bourg updated CONFIGURATION-327: ----------------------------------------- Affects Version/s: 1.5 The sections are deduced from the prefixes of the keys, that's why "dotted" is considered as a section. To prevent this we should probably turn INIConfiguration into a hierarchical configuration, the sections being the first level nodes. > INIConfiguration Global parameters alias sectional parameters > ------------------------------------------------------------- > > Key: CONFIGURATION-327 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-327 > Project: Commons Configuration > Issue Type: Bug > Components: Documentation, Format > Affects Versions: 1.5 > Reporter: Charles Honton > > After reading the following file with INIConfiguration > default = ok > dotted.var1 = default > [section1] > dotted.var1 = foo > var2 = doodle > The set of sections returned by INIConfiguration.getSections() includes "dotted" and "section1". I did not expect a section "dotted". -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Commented: (CONFIGURATION-327) INIConfiguration Global parameters alias sectional parameters[ https://issues.apache.org/jira/browse/CONFIGURATION-327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596526#action_12596526 ] Charles Honton commented on CONFIGURATION-327: ---------------------------------------------- Alternatively, since the ini format does not allow brackets in a key name, include brackets in the section part of the key name. The example above would contain: default = ok dotted.var1 = default [section1].dotted.var1 = foo [section1].var2 = doodle This would break prior clients expecting a particular name aliasing. This would not break clients properly appending the section name to the key name to get the property. > INIConfiguration Global parameters alias sectional parameters > ------------------------------------------------------------- > > Key: CONFIGURATION-327 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-327 > Project: Commons Configuration > Issue Type: Bug > Components: Documentation, Format > Affects Versions: 1.5 > Reporter: Charles Honton > > After reading the following file with INIConfiguration > default = ok > dotted.var1 = default > [section1] > dotted.var1 = foo > var2 = doodle > The set of sections returned by INIConfiguration.getSections() includes "dotted" and "section1". I did not expect a section "dotted". -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Updated: (CONFIGURATION-327) INIConfiguration Global parameters alias sectional parameters[ https://issues.apache.org/jira/browse/CONFIGURATION-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Charles Honton updated CONFIGURATION-327: ----------------------------------------- Attachment: TestINIConfiguration.diff INIConfiguration.diff A potential fix. However, it does change the names of the keys. > INIConfiguration Global parameters alias sectional parameters > ------------------------------------------------------------- > > Key: CONFIGURATION-327 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-327 > Project: Commons Configuration > Issue Type: Bug > Components: Documentation, Format > Affects Versions: 1.5 > Reporter: Charles Honton > Attachments: INIConfiguration.diff, TestINIConfiguration.diff > > > After reading the following file with INIConfiguration > default = ok > dotted.var1 = default > [section1] > dotted.var1 = foo > var2 = doodle > The set of sections returned by INIConfiguration.getSections() includes "dotted" and "section1". I did not expect a section "dotted". -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
| Free Forum Powered by Nabble | Forum Help |