[ 
https://issues.apache.org/jira/browse/DAFFODIL-2159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17286480#comment-17286480
 ] 

Dave Thompson commented on DAFFODIL-2159:
-----------------------------------------

It appears that this is still an issue.

Modified a test with an embedded schema in the tdml file to fail. The error 
message referenced an .xsd schema file in /tmp directory, not the tdml file.

[error] Test 
org.apache.daffodil.section00.general.TestElementFormDefaultGeneral.test_delimOptPresentQualified02
 failed: org.apache.daffodil.tdml.TDMLExceptionImpl: (Implementation: daffodil) 
UnparseError: Unparse Error: Data too long by 8 bits. Unable to truncate.
[error] Schema context: ex:opt Location line 39 column 12 in 
file:/tmp/qualified3548152806445145368.dfdl.xsd

> TDML Runner errors reference tmp file instead of tdml file
> ----------------------------------------------------------
>
>                 Key: DAFFODIL-2159
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2159
>             Project: Daffodil
>          Issue Type: Bug
>          Components: TDML Runner
>            Reporter: Steve Lawrence
>            Priority: Major
>              Labels: beginner, verify
>
> When a TDML file has an embedded schema, the TDML Runner creates a temporary 
> schema file and then compiles and uses that for running a parse/unparse 
> tests. However, when there is an error, the error message does not reference 
> the TDML file but instead references the temporary schema file. This isn't 
> heplful, especially since the temp file is usually deleted.
> We need to make sure that the TDML runner is correctly setting the dafint 
> file name attribute on the generated schema, and that that file name is used 
> for error messages.



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

Reply via email to