You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Jin Ho Jo (JIRA)" <ji...@apache.org> on 2011/02/08 11:02:58 UTC
[jira] Created: (CONFIGURATION-434) In
HierarchicalINIConfiguration, after saving a property by calling
setProperty() and save() methods, the contents after semicolon disappeared
in the saved file.
In HierarchicalINIConfiguration, after saving a property by calling setProperty() and save() methods, the contents after semicolon disappeared in the saved file.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: CONFIGURATION-434
URL: https://issues.apache.org/jira/browse/CONFIGURATION-434
Project: Commons Configuration
Issue Type: Bug
Components: File reloading
Affects Versions: 1.6
Environment: ini file in windows7 64bit
Reporter: Jin Ho Jo
Hi!
I am developing an application using Commons Configuration API.
And I got this problem.
In the ini file like this:
[Environment]
Application Type=any
Class Path=C:\Program Files\jar\manage.jar;C:\Program Files\jar\guiLauncher.jar;C:\Program Files\jar\appStart.jar;%USERPROFILE%;
I changed the value of 'Application Type' from 'any' to 'gui' by using class HierarchicalINIConfiguration.
The value was successfully modified, but instead the value of 'Class Path' was cut in the middle.
It is reduced like this : 'Class Path=C:\Program Files\jar\manage.jar'
In my opinion, the Configuration System regards the contents after ';' as comments, which disappeared from the file.
Is this a kind of bug? Or is there a way to show all the contents after ';' properly?
I appreciate if you give comments on this.
Thank you.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (CONFIGURATION-434) In
HierarchicalINIConfiguration, after saving a property by calling
setProperty() and save() methods, the contents after semicolon disappeared
in the saved file.
Posted by "Oliver Heger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CONFIGURATION-434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oliver Heger resolved CONFIGURATION-434.
----------------------------------------
Resolution: Fixed
Fix Version/s: 1.7
Fixed in subversion in revision 1069110.
A comment character must now be preceded by whitespace, otherwise it is considered part of the property value. Thus it is now possible to define file paths using a semicolon as delimiter in ini files read by {{HierarchicalINIConfiguration}}.
> In HierarchicalINIConfiguration, after saving a property by calling setProperty() and save() methods, the contents after semicolon disappeared in the saved file.
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CONFIGURATION-434
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-434
> Project: Commons Configuration
> Issue Type: Bug
> Components: File reloading
> Affects Versions: 1.6
> Environment: ini file in windows7 64bit
> Reporter: Jin Ho Jo
> Assignee: Oliver Heger
> Fix For: 1.7
>
>
> Hi!
> I am developing an application using Commons Configuration API.
> And I got this problem.
> In the ini file like this:
> [Environment]
> Application Type=any
> Class Path=C:\Program Files\jar\manage.jar;C:\Program Files\jar\guiLauncher.jar;C:\Program Files\jar\appStart.jar;%USERPROFILE%;
> I changed the value of 'Application Type' from 'any' to 'gui' by using class HierarchicalINIConfiguration.
> The value was successfully modified, but instead the value of 'Class Path' was cut in the middle.
> It is reduced like this : 'Class Path=C:\Program Files\jar\manage.jar'
> In my opinion, the Configuration System regards the contents after ';' as comments, which disappeared from the file.
> Is this a kind of bug? Or is there a way to show all the contents after ';' properly?
> I appreciate if you give comments on this.
> Thank you.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (CONFIGURATION-434) In
HierarchicalINIConfiguration, after saving a property by calling
setProperty() and save() methods, the contents after semicolon disappeared
in the saved file.
Posted by "Oliver Heger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CONFIGURATION-434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12992706#comment-12992706 ]
Oliver Heger commented on CONFIGURATION-434:
--------------------------------------------
As some testing shows, the problem is already in the loading of the configuration. After loading the test configuration the _Class Path_ property has been stripped after the first semicolon.
Your assumption is correct that the semicolon is interpreted as comment character, and the remaining part of the line is ignored. However, I think the semicolon should only be treated as comment character if there is at least one whitespace before it. I will try to fix this.
> In HierarchicalINIConfiguration, after saving a property by calling setProperty() and save() methods, the contents after semicolon disappeared in the saved file.
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CONFIGURATION-434
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-434
> Project: Commons Configuration
> Issue Type: Bug
> Components: File reloading
> Affects Versions: 1.6
> Environment: ini file in windows7 64bit
> Reporter: Jin Ho Jo
>
> Hi!
> I am developing an application using Commons Configuration API.
> And I got this problem.
> In the ini file like this:
> [Environment]
> Application Type=any
> Class Path=C:\Program Files\jar\manage.jar;C:\Program Files\jar\guiLauncher.jar;C:\Program Files\jar\appStart.jar;%USERPROFILE%;
> I changed the value of 'Application Type' from 'any' to 'gui' by using class HierarchicalINIConfiguration.
> The value was successfully modified, but instead the value of 'Class Path' was cut in the middle.
> It is reduced like this : 'Class Path=C:\Program Files\jar\manage.jar'
> In my opinion, the Configuration System regards the contents after ';' as comments, which disappeared from the file.
> Is this a kind of bug? Or is there a way to show all the contents after ';' properly?
> I appreciate if you give comments on this.
> Thank you.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (CONFIGURATION-434) In
HierarchicalINIConfiguration, after saving a property by calling
setProperty() and save() methods, the contents after semicolon disappeared
in the saved file.
Posted by "Jin Ho Jo (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CONFIGURATION-434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12992805#comment-12992805 ]
Jin Ho Jo commented on CONFIGURATION-434:
-----------------------------------------
Thank you very much for your quick fix.
> In HierarchicalINIConfiguration, after saving a property by calling setProperty() and save() methods, the contents after semicolon disappeared in the saved file.
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CONFIGURATION-434
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-434
> Project: Commons Configuration
> Issue Type: Bug
> Components: File reloading
> Affects Versions: 1.6
> Environment: ini file in windows7 64bit
> Reporter: Jin Ho Jo
> Assignee: Oliver Heger
> Fix For: 1.7
>
>
> Hi!
> I am developing an application using Commons Configuration API.
> And I got this problem.
> In the ini file like this:
> [Environment]
> Application Type=any
> Class Path=C:\Program Files\jar\manage.jar;C:\Program Files\jar\guiLauncher.jar;C:\Program Files\jar\appStart.jar;%USERPROFILE%;
> I changed the value of 'Application Type' from 'any' to 'gui' by using class HierarchicalINIConfiguration.
> The value was successfully modified, but instead the value of 'Class Path' was cut in the middle.
> It is reduced like this : 'Class Path=C:\Program Files\jar\manage.jar'
> In my opinion, the Configuration System regards the contents after ';' as comments, which disappeared from the file.
> Is this a kind of bug? Or is there a way to show all the contents after ';' properly?
> I appreciate if you give comments on this.
> Thank you.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira