openpreserve / jpylyzer

JP2 (JPEG 2000 Part 1) validator and properties extractor. Jpylyzer was specifically created to check that a JP2 file really conforms to the format's specifications. Additionally jpylyzer is able to extract technical characteristics.
http://jpylyzer.openpreservation.org/
Other
69 stars 28 forks source link

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

Open bitsgalore opened 4 years ago

bitsgalore commented 4 years ago

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 commented 4 years ago

@bitsgalore to comment and close.

bitsgalore commented 2 years ago

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.