You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Willy van Diepen (Jira)" <ji...@apache.org> on 2025/05/06 16:56:00 UTC

[jira] [Comment Edited] (CONFIGURATION-849) CONFIGURATION-841 removes needed duplicates from yaml config when read

    [ https://issues.apache.org/jira/browse/CONFIGURATION-849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17949787#comment-17949787 ] 

Willy van Diepen edited comment on CONFIGURATION-849 at 5/6/25 4:55 PM:
------------------------------------------------------------------------

Ah.. that is not something someone has told me.. or i have read over that.. Like i said.. it's my first..


was (Author: JIRAUSER306319):
Ah.. that is not something has told me.. or i have read over that.. Like i said.. it's my first..

> CONFIGURATION-841 removes needed duplicates from yaml config when read
> ----------------------------------------------------------------------
>
>                 Key: CONFIGURATION-849
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-849
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 2.10.1, 2.11.0
>            Reporter: Willy van Diepen
>            Priority: Major
>
> In our code we have multiple yaml configuration files where we have constructs like this
> {code:java}
> example: [ '' , '', code]{code}
> When we use the AbstractConfiguration.getStringArray method with the example key it always used to return an array with *'', '', code* but since 1.10.1 it returns {*}'', code{*}. Which breaks our code.
> I've checked the code and the release notes and it seems that the code that prevents the cyclic objects to cause a stack overflow error, also removes any duplicate strings, even though that should not be necessary.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)