Maintenance: Planio will be observing a scheduled maintenance window this Tuesday, November 5, 2024 from 03:00 UTC until 06:30 UTC to perform urgent network maintenance in our primary data center. Your Planio account will be unavailable during this maintenance window.
Bug #5554
closedSome initialization errors for asynchronous transforms are not handled correctly
100%
Description
While testing the issue raised in forum post https://saxonica.plan.io/boards/5/topics/8759 ('"Error parsing supplied SEF" when attempting transform using property stylesheetText'), I discovered that there are some cases where we do not correctly handle errors when initializing asynchronous transforms. Specifically, in transform()
for asynchronous transforms the SEF and source are loaded asynchronously using promises, and once both are available, the go()
function is called. However, there are a couple of cases where errors loading the SEF are thrown directly, rather than returning a rejected promise.
Updated by Debbie Lockett over 2 years ago
- Status changed from In Progress to Resolved
- Fix Committed on JS Branch 2, Trunk added
Fix committed on saxonjs2 and main branches: to tidy the code by using Promise.reject()
as necessary for these initialization errors.
New saxonapi unit tests added: async-trans-050, -051, -052, -053; async-trans-905, -906, -907; sync-trans-905, -906, -907.
Updated by Norm Tovey-Walsh about 2 years ago
- Sprint/Milestone set to SaxonJS 2.5
Updated by Norm Tovey-Walsh about 2 years ago
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- Fixed in JS Release set to SaxonJS 2.5
Fixed in SaxonJS 2.5.
Please register to edit this issue
Also available in: Atom PDF Tracking page