Project

Profile

Help

Bug #6453

open

Reusable XML parser is not immutable

Added by Michael Kay 5 months ago. Updated 2 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Configuration
Sprint/Milestone:
-
Start date:
2024-06-18
Due date:
% Done:

0%

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

Description

The Configuration holds a reusable XML parser, or a pool of such parsers, and many interfaces use a parser from this pool: notably Sender.send() and things built on top of it such as Configuration.buildDocument() and DocumentBuilder.build().

If parsing options such as DTD validation are set (for example via DocumentBuilder.setDTDValidation(), then it appears that the configuration of the shared (pooled) parser is modified, and subsequent uses of the same parser may run with the modified configuration settings.

This is showing up in tests that add a new DTD validation option to the parse-xml() function.

Please register to edit this issue

Also available in: Atom PDF