smooks / smooks-dfdl-cartridge

Smooks cartridge leveraging Apache Daffodil to parse files and unparse XML
https://www.smooks.org/documentation/#dfdl
Other
2 stars 3 forks source link

Regression in 1.0.0-RC3 causes infinite loop when a parsing error happens #191

Closed cjmamo closed 8 months ago

cjmamo commented 8 months ago

Describe the bug

See discussion thread https://groups.google.com/g/smooks-user/c/-XrBoBtgXCU

To Reproduce

Use the EDIFACT reader and set the syntax version in the EDIFACT document to an unsupported one. For example:

UNB+KECA:1+QW:KL+FT:KL+240216:1347+20240216134624'UNH+1+APERAK:D:00A:UN'BGM+294+cgch++1'DTM+137:202402161346:203'DOC+938:::VATDEC'RFF+ACE:cgch'RFF+wd:1'RFF+ws:E'NAD+MS+we'NAD+MR+wd'ERC+ER:E'FTX+AAP+++cgch:(30¿.():'UNT+12+1'UNZ+1+20240216134624' 

Expected behavior

The fatal error should cause the DFDL parser to give up instead of retrying to process the input.

Environment