Improve xsd-core Schemas handling of paths with spaces

Description

The attached patch improved the handling in xsd-core Schemas of paths with spaces. Instead of urldecoding the input location, DataUtilities.urlToFile is used for manipulations. This means that an invalid file: URL containing unescaped spaces is never constructed, facilitating the implementation of SchemaLocationResolver implementations that otherwise have trouble handling broken URLs.

I can hold this off stable until 2.7.0 is out, if you like.

(I have previously had to work around this behaviour in app-schema-resolver: this fix will allow that workaround to be fixed as well.)

Environment

None

Activity

Show:
codehaus
April 10, 2015, 2:53 PM

CodeHaus Comment From: jdeolive - Time: Mon, 7 Feb 2011 09:47:25 -0600
---------------------
Patch looks good Ben. The cautious part of me does agree that maybe hold off on 2.7.x until after 2.7.0... but at the same time this is a bug fix so if it does cause a regression we just fix accordingly. I leave it up to you to make the call.

codehaus
April 10, 2015, 2:53 PM

CodeHaus Comment From: bencaradocdavies - Time: Sun, 3 Apr 2011 22:50:56 -0500
---------------------
Committed in:

trunk: r36839

2.7.x: r36841

Fixed

Assignee

Unassigned

Reporter

codehaus

Triage

None

Components

Fix versions

Priority

Medium
Configure