[
https://issues.apache.org/jira/browse/CONFIGURATION-335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12698052#action_12698052
]
Ralph Goers commented on CONFIGURATION-335:
-------------------------------------------
I don't understand. XMLConfiguration in the experimental branch has a method
named processAttributes that splits the attribute into Nodes. I have a config
file for DefaultConfigurationBuilder that requires a ',' in it and it doesn't
work. I replaced the property converter call with List<String> values =
Collections.singletonList(attr.getValue()); and my DefaultConfgurationBuilder
test worked fine, but a whole bunch of other unit tests now fail because
attribute splitting isn't supported.
I either need to add the option to the experimental branch or disable attribute
splitting entirely, otherwise I can't commit my new code to the experimental
branch. What would you prefer?
> 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
> Assignee: Oliver Heger
> 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.