Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2340

TDML Runner suppresses loading warnings from invalid config files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0
    • TDML Runner
    • None

    Description

      The TDML runner gathers up sax errors onto a loadingExceptions list.

      This list is only displayed if the TDML file is deemed invalid, which requires that the sax exception was reported as an error, not just as a warning.

      Even if the TDML is deemed valid, warnings should be output.

      In test_unqualifiedPathStepPolicy_defaultNamespace_test_01 a warning is being suppressed that should say:

      org.apache.daffodil.xml.DFDLCatalogResolver Info[Unable to resolve file:/home/mbeckerle-unencrypted/daffodil/daffodil-test/target/scala-2.12/test-classes/org/apache/daffodil/section00/general/org/apache/daffodil/xsd/dafext.xsd in Some(file:/home/mbeckerle-unencrypted/daffodil/daffodil-test/target/scala-2.12/test-classes/org/apache/daffodil/section00/general/tunables.xml)]
      

      Couple things though. First, that exception is because of an xsi:schemaLocation attribute on the daf:dfdlConfig element in the config file tunables.xml.

      That particular error is spurious. It should be finding and properly resolving. That's a separate ticket DAFFODIL-2339.

      But, for purposes of this ticket, this exception is on the loadingExceptions list and is suppressed entirely.

      Attachments

        Activity

          People

            mbeckerle Mike Beckerle
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: