[jira] [Resolved] (CONFIGURATION-397) Schema validation exceptions in a combined configuration often result in an empty configuration being include with no exception or error message.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (CONFIGURATION-397) Schema validation exceptions in a combined configuration often result in an empty configuration being include with no exception or error message.

ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/CONFIGURATION-397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers resolved CONFIGURATION-397.
---------------------------------------

    Resolution: Fixed

Fixed in version 1.7

> Schema validation exceptions in a combined configuration often result in an empty configuration being include with no exception or error message.
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-397
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-397
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.7
>         Environment: Linux, JBoss, JDK 6
>            Reporter: Ralph Goers
>            Assignee: Ralph Goers
>             Fix For: 1.7
>
>
> When using DefaultConfigurationBuilder to construct a combined configuration using MultiFileHierarchicalConfiguration (the override file) followed by XMLConfiguration (the default file), if one of the override files has a schema validation error the exception is not thrown nor is an error logged. Instead, an empty configuration is returned.
> If schema violation exceptions occur they should always throw exceptions, regardless of whether a file is optional or not.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira