db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Waagan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DERBY-5897) Broken handling of paths with special characters in compatibility/VersionCombinationConfigurator
Date Thu, 09 Aug 2012 09:08:19 GMT

     [ 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

        

Mime
View raw message