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 2023/12/07 14:41:00 UTC
[jira] [Resolved] (DAFFODIL-2864) Regression in distinguished root node
[ https://issues.apache.org/jira/browse/DAFFODIL-2864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Lawrence resolved DAFFODIL-2864.
--------------------------------------
Fix Version/s: 3.7.0
Assignee: Steve Lawrence
Resolution: Fixed
Fixed in commit b8976946ec02c0475ce665b527db3d6c7014dba9
> Regression in distinguished root node
> -------------------------------------
>
> Key: DAFFODIL-2864
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2864
> Project: Daffodil
> Issue Type: Bug
> Affects Versions: 3.5.0, 3.6.0
> Reporter: Claude Mamo
> Assignee: Steve Lawrence
> Priority: Major
> Fix For: 3.7.0
>
>
> We've updated from Daffodil 3.4 to 3.5. Following the update, one of our Smooks examples started failing. It appears that the distinguished root node set from the processor factory is now being ignored. The same behaviour occurs on Daffodil 3.6. I've created a test case which reproduces the unexpected behaviour here: [https://github.com/claudemamo/smooks-dfdl-cartridge/tree/daffodil-distinguishedRootNode-issue]. Running the following will give you an error:
> {code:java}
> mvn clean test -Dtest=org.smooks.cartridges.dfdl.FunctionalTestCase#testSmooksConfigGivenDistinguishedRootNode{code}
>
> The error is:
> {quote}
> Unparse Error: Expected element start event for ex:\{http://example.com}file, but received element start event for (invalid) \{http://example.com}record
> {quote}
> The expected start event should actually be _[http://example.com|http://example.com/]:record_ because this is what the distinguished root node is set to. The distinguished root node is set in this line of code: [https://github.com/claudemamo/smooks-dfdl-cartridge/blob/daffodil-distinguishedRootNode-issue/src/main/java/org/smooks/cartridges/dfdl/DfdlSchema.java#L154]. I've checked the release notes for Daffodil 3.5 and nothing stands out. The test case passes on Daffodil 3.4. Any advice on what the problem could be?
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)