Bug #2272
closed
XdmNode.BaseUri throws exception when NodeInfo.getBaseURI() returns null
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Description
Same as #1191, but on .NET
- Status changed from New to In Progress
- Assignee set to O'Neil Delpratt
- Priority changed from Low to Normal
Thanks for reporting the bug you found looking at it now.
Hi, do you have a code snippet that reproduces the problem please?
var processor = new Processor();
var docb = processor.NewDocumentBuilder();
var node = docb.Build(XmlReader.Create(new StringReader("<a/>")));
Console.WriteLine(node.BaseUri);
- Status changed from In Progress to Resolved
Thanks for sending the repo. I managed to reproduce it. A similar fix has been applied to the BaseUri property in the XdmNode class which will be available in the next release.
As a workaround if possible you could set the baseUri where you create the XmlReader:
XmlReader reader = XmlReader.Create(new StringReader("<a/>"), null, "http://example.com");
- Status changed from Resolved to In Progress
I am opening this again as the fix was not complete. I have created some nunit test cases to test for regression in future release.
Bug fixed now in the Model.cs file. Fix committed to subversion.
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
- Found in version changed from 9.6.0.3 to 9.6
- Fixed in version set to 9.6.0.4
Bug fix applied in the Saxon 9.6.0.4 maintenance release.
- Status changed from Resolved to Closed
- Sprint/Milestone set to 9.6.0.4
- Applies to branch 9.6 added
- Fix Committed on Branch 9.6 added
- Fixed in Maintenance Release 9.6.0.4 added
- Sprint/Milestone changed from 9.6.0.4 to 9.6.0.3
- Fixed in Maintenance Release 9.6.0.3 added
- Fixed in Maintenance Release deleted (
9.6.0.4)
- Sprint/Milestone changed from 9.6.0.3 to 9.6.0.4
- Fixed in Maintenance Release 9.6.0.4 added
- Fixed in Maintenance Release deleted (
9.6.0.3)
Please register to edit this issue
Also available in: Atom
PDF