Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-397

Schema validation exceptions in a combined configuration often result in an empty configuration being include with no exception or error message.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.7
    • Component/s: None
    • Labels:
      None
    • Environment:

      Linux, JBoss, JDK 6

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              rgoers Ralph Goers
              Reporter:
              rgoers Ralph Goers
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: