You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Kristian Waagan (JIRA)" <ji...@apache.org> on 2012/08/09 11:08:19 UTC
[jira] [Updated] (DERBY-5897) Broken handling of paths with special
characters in compatibility/VersionCombinationConfigurator
[ https://issues.apache.org/jira/browse/DERBY-5897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Waagan updated DERBY-5897:
-----------------------------------
Attachment: derby-5897-1a-url_handling.diff
Attaching patch 1a, which fixes the encoded URL issue by converting the URL to an URI and passing it to the File(URI) constructor.
Also added a new sanity check (fail-fast) and a debug printout.
Patch ready for review.
> Broken handling of paths with special characters in compatibility/VersionCombinationConfigurator
> ------------------------------------------------------------------------------------------------
>
> Key: DERBY-5897
> URL: https://issues.apache.org/jira/browse/DERBY-5897
> Project: Derby
> Issue Type: Bug
> Components: Test
> Affects Versions: 10.10.0.0
> Reporter: Kristian Waagan
> Assignee: Kristian Waagan
> Priority: Minor
> Attachments: derby-5897-1a-url_handling.diff
>
>
> Some of the code handling paths in compatibility/VersionCombinationConfigurator is broken.
> The issue is that the location of a given class is given as a URL. This means the path will be URL encoded, and, for instance, spaces will be encoded as '%20'.
> This bug typically shows itself as an NPE when invoking compatibility._Suite.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira