Project

Profile

Help

Bug #3611

Handle error responses from HTTP requests

Added by Debbie Lockett 11 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Sprint/Milestone:
-
Start date:
2018-01-10
Due date:
% Done:

100%

Applies to JS Branch:
1.0, Trunk
Fix Committed on JS Branch:
1.0, Trunk
Fixed in JS Release:
SEF Generated with:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

Error responses from HTTP requests (using ixsl:schedule-action/@http-request) are not properly handled, i.e. when http.status >= 400.

Currently we get a crash:

Uncaught TypeError: Cannot read property 'split' of null at XMLHttpRequest.http.onreadystatechange

(SaxonJS.js:314)

History

#1 Updated by Debbie Lockett 11 months ago

  • Status changed from New to Resolved
  • Fix Committed on JS Branch 1.0, Trunk added

Handle http.status >= 400 better in makeHttpRequestJS. Add this condition to the block of processing already dependant on !request["status-only"]. In this case, the HTTP response map will have entries for status, message, and headers, but no body.

Fix committed on 1.0 and trunk branches.

#3 Updated by Debbie Lockett 7 months ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in JS Release set to Saxon-JS 1.1.0

Bug fix applied in the Saxon-JS 1.1.0 maintenance release.

Please register to edit this issue

Also available in: Atom PDF Tracking page