You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Josh Adams (Jira)" <ji...@apache.org> on 2025/01/13 19:11:00 UTC
[jira] [Updated] (DAFFODIL-2947) TDML test case rootNS="" doesn't work to specify root element in no namespace
[ https://issues.apache.org/jira/browse/DAFFODIL-2947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Josh Adams updated DAFFODIL-2947:
---------------------------------
Fix Version/s: 3.10.0
> TDML test case rootNS="" doesn't work to specify root element in no namespace
> -----------------------------------------------------------------------------
>
> Key: DAFFODIL-2947
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2947
> Project: Daffodil
> Issue Type: Bug
> Components: TDML Runner
> Affects Versions: 3.9.0
> Reporter: Mike Beckerle
> Assignee: Olabusayo Kilo
> Priority: Major
> Fix For: 4.0.0, 3.10.0
>
>
> I have a schema with a "message" element defined as the root element in a no-namespace schema.
>
> This schema imports another schema (tcpHeader) which defines a "message" element in its own namespace.
>
> When I try to run a TDML test, I get this error:
> ```
> [error] Test io.github.dfdlschemas.envelopepayload.TestEnvelopePayload.test_envelopepayload_02 failed: org.apache.daffodil.tdml.TDMLExceptionImpl: (Implementation: daffodil) test does not expect Error diagnostics, but created the following: Schema Definition Error: Root element message is ambiguous. Candidates are List(message in namespace urn:io.github.dfdlschemas.tcpMessage, message in no namespace).
> ```
> This happens regardless of whether the test case contains
> ```
> root="message" rootNS=""
> ```
> or just
> ```
> root="message"
> ```
> or no root specified as an attribute at all.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)