Project

Profile

Help

Bug #3611

closed

Handle error responses from HTTP requests

Added by Debbie Lockett over 6 years ago. Updated almost 6 years ago.

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

100%

Estimated time:
Applies to JS Branch:
1.0, Trunk
Fix Committed on JS Branch:
1.0, Trunk
Fixed in JS Release:
SEF Generated with:
Platforms:
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)

Actions #1

Updated by Debbie Lockett over 6 years 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.

Actions #3

Updated by Debbie Lockett almost 6 years 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