[
https://issues.apache.org/jira/browse/DAFFODIL-2864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claude Mamo updated DAFFODIL-2864:
----------------------------------
Description:
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?
was:
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?
> 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
> Priority: Major
>
> 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)