Handling asynchronous document fetch failures
Asynchronous document fetches are achieved using ixsl:schedule-action/@document. However failures are not handled properly.
Using Saxon-JS 1.0.1 (or earlier), if the requested document in ixsl:schedule-action/@document is not returned, then this always results in an uncaught XError.
An error should only get raised from a subsequent call to doc(), while doc-available() should return false.
#2 Updated by Debbie Lockett 8 months ago
- Status changed from New to Resolved
- Fix Committed on JS Branch 1.0, Trunk added
Changed the code so now if an asynchronous document fetch fails, then an entry is added to the document pool (with the URI as the key and the XError as the value); rather than throwing the error immediately. When we subsequently try to access the document from the pool, we pick up the XError - so the doc() and doc-available() functions will work correctly.
Fix committed on 1.0 and trunk branches.
Please register to edit this issue