You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Oliver Heger (JIRA)" <ji...@apache.org> on 2018/06/09 20:03:00 UTC
[jira] [Resolved] (CONFIGURATION-703) xml:space="preserve" does not
handle blank strings properly
[ https://issues.apache.org/jira/browse/CONFIGURATION-703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oliver Heger resolved CONFIGURATION-703.
----------------------------------------
Resolution: Fixed
Fix Version/s: 2.3
The patch was applied (with minor tweaks) in SVN revision 1833251. Many thanks again.
If you want to be listed in the contributors section of pom.xml, please send us the data you want to have added.
> xml:space="preserve" does not handle blank strings properly
> -----------------------------------------------------------
>
> Key: CONFIGURATION-703
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-703
> Project: Commons Configuration
> Issue Type: Bug
> Affects Versions: 2.2
> Reporter: Pascal Essiembre
> Priority: Major
> Fix For: 2.3
>
>
> When using XMLConfiguration 2, tags containing only white spaces are not handled properly when xml:space="preserve" is set. 'null' is returned instead of the actual spaces. To reproduce:
>
> {code:java}
> XMLConfiguration xml = new BasicConfigurationBuilder<>(
> XMLConfiguration.class).configure(
> new Parameters().xml()).getConfiguration();
> FileHandler fh = new FileHandler(xml);
> fh.load(new StringReader("<test xml:space=\"preserve\"> </test>"));
> System.out.println("TEST: '" + xml.getString("") + "'");
> // Outputs -> TEST: 'null'
> // Should be -> TEST: ' '
> {code}
>
>
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)