You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Steve Lawrence (Jira)" <ji...@apache.org> on 2021/02/04 14:51:00 UTC

[jira] [Resolved] (DAFFODIL-900) dfdl:ref format reference not found - fails silently

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

Steve Lawrence resolved DAFFODIL-900.
-------------------------------------
    Fix Version/s: 3.1.0
       Resolution: Fixed

I was able to write a very basic schema that confirmed that this does fail with an error message like:
{quote}[error] Schema Definition Error: defineFormat with name '\{foo_ns}GeneralFormat', was not found.
{quote}
I was also able to find numerous tests that verify that we get this error when a define format reference cannot be found. The relevant tests are:
 * daffodil-test/src/test/scala/org/apache/daffodil/section08/property_scoping/TestPropertyScoping.scala
 ** test_property_scoping_07
 ** test_property_scoping_08
 ** test_property_scoping_09
 ** test_property_scoping_10
 ** test_unparse_property_scoping_07
 ** test_unparse_property_scoping_08
 ** test_unparse_property_scoping_09
 ** test_unparse_property_scoping_10

Marking as resolved and removing dev-verify label.

> dfdl:ref format reference not found - fails silently
> ----------------------------------------------------
>
>                 Key: DAFFODIL-900
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-900
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Front End, General
>    Affects Versions: s11
>            Reporter: Mike Beckerle
>            Priority: Major
>              Labels: dev-verify
>             Fix For: 3.1.0
>
>
> If you have say,
> {code}
>  <xs:include schemaLocation="xsd/built-in-formats.xsd"/> 
> <dfdl:format ref="foo:daffodilTest1" .../> 
> {code}
> but the foo prefix is not bound to the current target namespace, This seems to just fail silently. It should give an SDE indicating the ref was not found.



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