Project

Profile

Help

Bug #2213

closed

Comparing QName to untypedAtomic crashes

Added by Michael Kay about 10 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XPath conformance
Sprint/Milestone:
Start date:
2014-11-06
Due date:
% Done:

0%

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

Description

According to the XPath 3.0 specification, given the expression ($p = $q) where $p is untypedAtomic and $q is a QName, the comparison should be done after casting $p to a QName using the namespaces present in the static context. Instead, Saxon crashes:

java.lang.UnsupportedOperationException: Cannot validate a QName without a namespace resolver

See QT3 test case -s:prod-GeneralComp.eq -t:GenCompEq-22 (contributed by Saxonica)


Related issues

Has duplicate Saxon - Bug #2223: Comparing untyped atomics with QNamesClosed2014-11-16

Actions
Actions #1

Updated by Michael Kay about 10 years ago

  • Status changed from New to In Progress

A complete fix has been made on the 9.7 branch; this involves saving the namespace context for every general comparison, which is expensive. For 9.6 a partial fix is being committed for now as a patch; the effect of the fix is to make this situation a dynamic error rather than a crash.

Actions #2

Updated by O'Neil Delpratt almost 10 years ago

  • Status changed from In Progress to Resolved
  • Fixed in version set to 9.6.0.3

Bug fix committed the Saxon maintenance release 9.6.0.2. We don't intend to provide a complete solution in the 9.6 branch.

Actions #3

Updated by O'Neil Delpratt almost 10 years ago

  • Fixed in version changed from 9.6.0.3 to 9.6.0.2
Actions #4

Updated by O'Neil Delpratt almost 10 years ago

  • Status changed from Resolved to Closed
Actions #5

Updated by O'Neil Delpratt about 9 years ago

  • Sprint/Milestone set to 9.6.0.2
  • Applies to branch 9.6 added
  • Fix Committed on Branch 9.6 added
  • Fixed in Maintenance Release 9.6.0.2 added

Please register to edit this issue

Also available in: Atom PDF