Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Section 11.2.1.1 - Clarify encodingErrorPolicy 'error' behaviour when pre-decoding data when parsing #9

Closed
mbeckerle opened this issue Nov 23, 2020 · 1 comment
Labels
DFDL 1.0 Public comments for DFDL 1.0 (GFD 240) Resolved

Comments

@mbeckerle
Copy link

(Moved from redmine tracker 339)

Pre-decoding will cause a processing error when encodingErrorPolicy is 'error'. Some useful libraries will inevitably pre-decode and we don't want to make DFDL implementations difficult to write by having rules that prevent such libraries from being used. Wording needs adding to section 11.2.1.1 to clarify the behaviour, eg:

"Implementations may pre-decode a limited number of characters for efficiency; however, such implementation-dependent pre-decoding can cause parse errors to be detected in some implementations of DFDL that are not detected by others.

Schema authors are advised not to rely on decoding errors for backtracking to control the behavior of the parser."

@smhdfdl smhdfdl added the DFDL 1.0 Public comments for DFDL 1.0 (GFD 240) label Nov 24, 2020
@mbeckerle
Copy link
Author

Added to 11.2.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DFDL 1.0 Public comments for DFDL 1.0 (GFD 240) Resolved
Projects
None yet
Development

No branches or pull requests

2 participants