You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sergey Vladimirov (JIRA)" <ji...@apache.org> on 2008/11/27 00:06:44 UTC
[jira] Issue Comment Edited: (CONFIGURATION-335) XMLConfiguration:
Can't disable attribute splitting
[ https://issues.apache.org/jira/browse/CONFIGURATION-335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12651176#action_12651176 ]
bsp edited comment on CONFIGURATION-335 at 11/26/08 3:05 PM:
---------------------------------------------------------------------------
Oliver,
Is parser doing "|" splitting? I thought it was line 487 in XMLConfiguration:
/** Constant for the delimiter for multiple attribute values.*/
private static final char ATTR_VALUE_DELIMITER = '|';
.......
Iterator it = PropertyConverter.split(
attr.getValue(),
isDelimiterParsingDisabled() ? ATTR_VALUE_DELIMITER
: getListDelimiter()).iterator();
was (Author: bsp):
Oliver,
Is parser doing "|" splitting? I thought it was line 487 in XMLConfiguration:
Iterator it = PropertyConverter.split(
attr.getValue(),
isDelimiterParsingDisabled() ? ATTR_VALUE_DELIMITER
: getListDelimiter()).iterator();
> XMLConfiguration: Can't disable attribute splitting
> ----------------------------------------------------
>
> Key: CONFIGURATION-335
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-335
> Project: Commons Configuration
> Issue Type: Bug
> Components: Format
> Affects Versions: 1.5
> Reporter: Sergey Vladimirov
> Fix For: 1.6
>
>
> My XML configuration has the following attribute:
> <some-element some-attribute="

" />
> But XML Configuration is trying to split this string and trims it after splitting. I don't need this behaviour, but setting setDelimiterParsingDisabled() just changing delimeter to "|" and not disables attribute trimming.
> Need either to disable trimming/splitting if setDelimiterParsingDisabled() is set to TRUE (incompatible change), or add something like setParseAttributesAsIs() that will prevent attributes to be trimmed and splitted
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.