Project

Profile

Help

Bug #3365

closed

Context is lost if a trace listener is added

Added by Michael Kay almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
.NET API
Sprint/Milestone:
-
Start date:
2017-07-26
Due date:
% Done:

100%

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

Description

[copied from #3364 which raised 2 separate issues]

I’ve been trying the latest Saxon 9.8.0.2 .Net Nuget and I’ve come across a couple of bugs. The attached files re-produce the errors.

The first one [this bug] is an issue that causes the context to be lost if a trace listener is added.

The second [see bug 3364] is a validation issue that occurs when the sample xsl file is imported multiple times (previously this raised a warning and then ran OK, now it causes an internal error).

Both these tests worked on older versions of the saxon libs.

To see the issues build the Visual Studio solution in the zip attached to bug 3364 and then run the RunTests.bat (some comments in the batch file explain the errors).

Actions #1

Updated by Michael Kay almost 7 years ago

  • Category set to .NET API
  • Assignee changed from Michael Kay to O'Neil Delpratt
  • Priority changed from Low to Normal
Actions #2

Updated by O'Neil Delpratt almost 7 years ago

  • Status changed from New to In Progress
  • Applies to branch 9.8 added

I have managed to reproduce the error of the context being lost when the trace listener is added. This happens only on .NET. Still investigating

Actions #3

Updated by O'Neil Delpratt almost 7 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100
  • Applies to branch 9.7 added
  • Fix Committed on Branch 9.7, 9.8 added

The issue is we are not setting the initial context item early enough on the controller, therefore, the TraceExpression does not know about the context node. I have added some logic in the InitialContextNode property on the XsltTransformer to ensure the controller know about the initial context item.

Bug fixed and committed to subversion.

Actions #4

Updated by O'Neil Delpratt over 6 years ago

  • Fixed in Maintenance Release 9.8.0.4 added

Bug fix applied in the Saxon 9.8.0.4 maintenance release. Leaving bug marked as resolved until applied in the next 9.7 maintenance release

Actions #5

Updated by O'Neil Delpratt over 6 years ago

  • Fixed in Maintenance Release 9.8.0.5 added
  • Fixed in Maintenance Release deleted (9.8.0.4)

Bug fix applied in the Saxon 9.8.0.5 maintenance release. Leave open until the bug fix is applied in 9.7 branch.

Actions #6

Updated by O'Neil Delpratt over 6 years ago

  • Status changed from Resolved to Closed

Bug fix applied in the Saxon 9.8.0.5 maintenance release. Leave open until fix applied in the 9.7 release

Actions #7

Updated by O'Neil Delpratt over 6 years ago

  • Status changed from Closed to Resolved

Bug fix applied in the Saxon 9.8.0.5 maintenance release. Leave open until fix applied in the 9.7 release

Actions #8

Updated by O'Neil Delpratt over 6 years ago

  • Status changed from Resolved to Closed
  • Fixed in Maintenance Release 9.7.0.21 added

Bug fix applied in the Saxon 9.7.0.21 maintenance release.

Please register to edit this issue

Also available in: Atom PDF