Project

Profile

Help

Bug #2184

With a DOM with unknown baseURI, unparsed-entity-uri() throws a NullPointerException

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
DOM Interface
Sprint/Milestone:
Start date:
2014-10-15
Due date:
% Done:

100%

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

Description

When unparsed-entity-uri() or unparsed-entity-public-id() is called on a DOM tree with no known base URI, a NullPointerException is thrown.

Reported here:

https://saxonica.plan.io/boards/2/topics/6017?r=6024

Occurs in 9.6 and previous releases.

The correct action to take is not clear from the spec. For the TinyTree and LinkedTree, Saxon returns the relative URI unresolved, and I am patching the DOM implementation to do the same. A spec bug has been raised:

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27061

History

#1 Updated by Michael Kay almost 5 years ago

  • Status changed from New to Resolved

A patch to class DOMDocumentWrapper has been committed on the 9.5, 9.6, and 9.7 branches. Considered very low risk both because the code is obvious and because it's a very rarely used path, therefore untested.

#2 Updated by O'Neil Delpratt almost 5 years ago

Bug fix applied in the Saxon maintenance release 9.5.1.8

Saxon 9.6 pending

#3 Updated by O'Neil Delpratt almost 5 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in version set to 9.6.0.2

Bug fix applied to the maintenance release Saxon 9.6.0.2

#4 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