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 09:41:20 UTC
[jira] [Created] (DERBY-5897) Broken handling of paths with special
characters in compatibility/VersionCombinationConfigurator
Kristian Waagan created DERBY-5897:
--------------------------------------
Summary: 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
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
[jira] [Updated] (DERBY-5897) Broken handling of paths with special
characters in compatibility/VersionCombinationConfigurator
Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-5897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Waagan updated DERBY-5897:
-----------------------------------
Issue & fix info: Patch Available
> 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
[jira] [Resolved] (DERBY-5897) Broken handling of paths with
special characters in compatibility/VersionCombinationConfigurator
Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-5897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Waagan resolved DERBY-5897.
------------------------------------
Resolution: Fixed
Fix Version/s: 10.10.0.0
Issue & fix info: (was: Patch Available)
Committed patch 1a, with some formatting modifications, to trunk with revision 1372345.
> 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
> Fix For: 10.10.0.0
>
> 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
[jira] [Updated] (DERBY-5897) Broken handling of paths with special
characters in compatibility/VersionCombinationConfigurator
Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
[ 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