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

XSD schema validation error because of very large integer value #133

Open
bitsgalore opened this issue Aug 20, 2019 · 2 comments
Open

XSD schema validation error because of very large integer value #133

bitsgalore opened this issue Aug 20, 2019 · 2 comments
Assignees

Comments

@bitsgalore
Copy link
Member

Example:

https://github.com/uclouvain/openjpeg-data/blob/master/input/nonregression/issue400.jp2

Validating this file with jpylyzer results in the following reported codeBlockHeight value:

Validating the output against the XSD schema then results in this:

oj-jp2.xml:69784: element codeBlockHeight: Schemas validity error : Element '{http://openpreservation.org/ns/jpylyzer/v2/}codeBlockHeight': '50216813883093446110686315385661331328818843555712276103168' is not a valid value of the atomic type 'xs:integer'.

This looks like a case of this.

No obvious solution, unless numerical fields are defined as strings in the schema. Note that this could happen to many other reported properties that are integers.

@carlwilson
Copy link
Member

@bitsgalore to comment and close.

@bitsgalore
Copy link
Member Author

This also causes a failure for test_xml_is_valid_jp2. There's not much to do about this, leaving this open for now as a reminder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants