Project

Profile

Help

Bug #2570

closed

Wrong exit code on error (XQuery command line)

Added by Ruvim Pinka over 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Command Line
Sprint/Milestone:
Start date:
2016-01-03
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.6, 9.7
Fix Committed on Branch:
9.6, 9.7
Fixed in Maintenance Release:
Platforms:

Description

In some cases exit code is 0 when it should be non zero.

Testcase (on Windows):

java -classpath /path/to/saxon9he.jar net.sf.saxon.Query -qs:"node-without-context"
echo exitcode=%ERRORLEVEL%

Output:

Error at char 20 in query on line 1
  XPDY0002: The context item for axis step ./node-without-context is absent
Query failed with dynamic error: The context item for axis step ./node-without-context is absent
exitcode=0

Saxon version is: Saxon-HE 9.7.0.1J

Actions #1

Updated by Michael Kay over 8 years ago

  • Subject changed from wrong exit code on error to Wrong exit code on error (XQuery command line)
  • Category set to Command Line
  • Status changed from New to Resolved
  • Assignee set to Michael Kay
  • Applies to branch 9.6 added
  • Fix Committed on Branch 9.6, 9.7 added

Patch committed and tested on both the 9.6 and 9.7 branches.

Actions #2

Updated by O'Neil Delpratt about 8 years ago

  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 9.7.0.2 added

Bug fix applied in the Saxon 9.7.0.2 maintenance release

Actions #3

Updated by O'Neil Delpratt about 8 years ago

  • Fixed in Maintenance Release 9.7.0.3 added
  • Fixed in Maintenance Release deleted (9.7.0.2)

Bug fix applied in the 9.7.0.3 maintenance release. Leave open until fix applied in the 9.6 branch

Actions #4

Updated by O'Neil Delpratt almost 8 years ago

  • Status changed from Resolved to Closed
  • Fixed in Maintenance Release 9.6.0.9 added
  • Fixed in Maintenance Release deleted (9.7.0.3)

Bug fix applied in the Saxon 9.6.0.9 maintenance release.

Actions #5

Updated by O'Neil Delpratt almost 8 years ago

  • Fixed in Maintenance Release 9.7.0.3 added
Actions #6

Updated by O'Neil Delpratt almost 8 years ago

  • Sprint/Milestone set to 9.7.0.3

Please register to edit this issue

Also available in: Atom PDF