You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2020/05/12 17:28:00 UTC

[jira] [Assigned] (DAFFODIL-2340) TDML Runner suppresses loading warnings from invalid config files

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

Mike Beckerle reassigned DAFFODIL-2340:
---------------------------------------

    Assignee: Mike Beckerle

> TDML Runner suppresses loading warnings from invalid config files
> -----------------------------------------------------------------
>
>                 Key: DAFFODIL-2340
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2340
>             Project: Daffodil
>          Issue Type: Bug
>          Components: TDML Runner
>    Affects Versions: 2.6.0
>            Reporter: Mike Beckerle
>            Assignee: Mike Beckerle
>            Priority: Major
>             Fix For: 3.0.0
>
>
> 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:
> {code}
> 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)]
> {code}
> 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. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)