[
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)