Project

Profile

Help

Bug #2213

Comparing QName to untypedAtomic crashes

Added by Michael Kay almost 5 years ago. Updated almost 4 years ago.

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

0%

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

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

Duplicated by Saxon - Bug #2223: Comparing untyped atomics with QNames Closed 2014-11-16 Actions

History

#1 Updated by Michael Kay almost 5 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.

#2 Updated by O'Neil Delpratt over 4 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.

#3 Updated by O'Neil Delpratt over 4 years ago

  • Fixed in version changed from 9.6.0.3 to 9.6.0.2

#4 Updated by O'Neil Delpratt over 4 years ago

  • Status changed from Resolved to Closed

#5 Updated by O'Neil Delpratt almost 4 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