-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Ensure that fieldObjects
and #collectFieldObjects
handles References correctly
#17242
Ensure that fieldObjects
and #collectFieldObjects
handles References correctly
#17242
Conversation
…ces correctly The `fieldObjects`-getter itself is called, from `src/core/worker.js`, in a way that'll ensure that any `MissingDataException`s are handled. However the problem is that the actual data-lookups in `fieldObjects` and `#collectFieldObjects` are done inside of a Promise, which means that `MissingDataException`s won't be handled and parsing could thus break. To address this we change all data-lookups to be asynchronous instead.
The `fieldObjects`-getter is implemented in the `PDFDocument` class, which means that the `this._localIdFactory`-property that we pass to `AnnotationFactory.create` doesn't actually exist. The reason that this hasn't caused any bugs, that I'm aware of, is that all /Fields-entries need to be References to actually make sense.
70a22f3
to
ff62fc8
Compare
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/532832e69e3d157/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/8eaaa9f972b31d9/output.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you.
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/532832e69e3d157/output.txt Total script time: 25.11 mins
Image differences available at: http://54.241.84.105:8877/532832e69e3d157/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/8eaaa9f972b31d9/output.txt Total script time: 35.68 mins
Image differences available at: http://54.193.163.58:8877/8eaaa9f972b31d9/reftest-analyzer.html#web=eq.log |
Please refer to the individual commit messages for additional details.