Project

Profile

Help

Bug #4745

closed

Testing for "the same" schema location is not sensitive to relative path

Added by Norm Tovey-Walsh over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Low
Category:
-
Sprint/Milestone:
-
Start date:
2020-09-22
Due date:
% Done:

100%

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

Description

Determining if two schema components are "the same" (and thus not a redeclaration of a component) can depend on determining whether or not the schema locations from which those components were loaded are "the same". If two components are loaded from the same URI, they are assumed to be the same component.

However, it is possible for the relative locations to have URIs that appear to be different: file:/path/to/schema.xsd in one case and file:/path/to/subdirectory/../schema.xsd in the other. (This case arises in the junit Validator tests, for example).

Differences in relative paths should be normalized when comparing locations.

Please register to edit this issue

Also available in: Atom PDF