-
Notifications
You must be signed in to change notification settings - Fork 11
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
validate gives a error.table.bad_field_read error #544
Comments
I also get the same results with validate 3.0.0 |
PR out for review and approval - needed for validate release. |
Well, even with the newly-released, non-SNAPSHOT But I'm out of time for today so I'll have to investigate tomorrow. |
Okay, here's an (interesting?) observation. If I add the indicated line to @msbentley's <Encoded_Image>
<offset unit="byte">0</offset>
<object_length unit="byte">12345</object_length> <!-- 👈 this line -->
<encoding_standard_id>PNG</encoding_standard_id>
</Encoded_Image> … then So I'm suspecting that |
In the file Label.java at line 666–669, we have: if (stream instanceof EncodedByteStream) {
EncodedByteStream ebs = (EncodedByteStream) stream;
size = ebs.getObjectLength().getValue().longValueExact(); // 👈 There's your problem
offset = ebs.getOffset().getValue().longValueExact(); The However, this code hasn't changed in … well, in a while! So the assumption it's made that it would never be Looking at the So something else has changed. Maybe the "object length" had a default value before? |
🐛 Describe the bug
validate 2.4.0 reading a browse product which previously passed validation gives this error:
📜 To Reproduce
Steps to reproduce the behavior:
🕵️ Expected behavior
Product passes validation
📚 Version of Software Used
validate 2.4.0
🩺 Test Data / Additional context
mag_cal_sc_browse_example.zip
🏞Screenshots
🖥 System Info
🦄 Related requirements
⚙️ Engineering Details
The text was updated successfully, but these errors were encountered: