You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While going through the iiif workshop on monday, I think I found a bug in the validator.
Submitting a manifest hosted locally using the URL format returns the correct error
but submitting it using the UI, doesn't display any response, but throws an error in the console:
(index):152 Uncaught TypeError: Cannot read property 'length' of undefined
at Object.handleValidationResponse [as success] ((index):152)
at i (jquery-2.2.3.min.js:2)
at Object.fireWith [as resolveWith] (jquery-2.2.3.min.js:2)
at z (jquery-2.2.3.min.js:4)
at XMLHttpRequest.<anonymous> (jquery-2.2.3.min.js:4)
The problem seems to be that data.warnings is undefined, so calling length on it throws an error.
While going through the iiif workshop on monday, I think I found a bug in the validator.
Submitting a manifest hosted locally using the URL format returns the correct error
https://iiif.io/api/presentation/validator/service/validate?format=json&version=2.0&url=http://127.0.0.1:8887/manifest.json
but submitting it using the UI, doesn't display any response, but throws an error in the console:
The problem seems to be that data.warnings is undefined, so calling length on it throws an error.
presentation-validator/index.html
Line 144 in e620780
Maybe errors when fetching the resource could be added to warnings too?
The text was updated successfully, but these errors were encountered: