felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stuart McCulloch (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-731) Installation of referenced files which contain whitepaces fails
Date Mon, 22 Sep 2008 15:12:44 GMT

    [ https://issues.apache.org/jira/browse/FELIX-731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633289#action_12633289
] 

Stuart McCulloch commented on FELIX-731:
----------------------------------------

Forget my earlier comment - I misread the description :)

Yes, the reference: code appears to take the substring and use that as a plain filename, whereas
I think it should instead attempt to create a URI (or URL) first and then pass that into the
File constructor. The %20 escaped character would then be handled as part of the normal URI/URL
processing.

> Installation of referenced files which contain whitepaces fails
> ---------------------------------------------------------------
>
>                 Key: FELIX-731
>                 URL: https://issues.apache.org/jira/browse/FELIX-731
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.2.1

>         Environment: Windows XP
>            Reporter: Fran├žois Fornaciari
>
> The installation of bundles which contain whitespaces by using the reference prefix fails.
> When not using the reference prefix, the solution is to replace whitespaces by %20, 
> Unfortunately, the same approach does not fix the issue for referenced files. 
> Below the error message when installing a bundle with whitespaces:
> -> install reference:file:D:/.m2/repository/org/ow2/bundles/util-plan-deployer/1.0.8-SNAPSHOT/util-plan-deployer
1.0.8-SNAPSHOT.jar
> java.io.IOException: Referenced file does not exist: D:\.m2\repository\org\ow2\bundles\util-plan-deployer\1.0.8-SNAPSHOT\util-plan-deployer
> java.net.MalformedURLException: no protocol: 1.0.8-SNAPSHOT.jar
> Below the error message when installing a bundle by replacing whitespaces by %20:
> -> install reference:file:D:/.m2/repository/org/ow2/bundles/util-plan-deployer/1.0.8-SNAPSHOT/util-plan-deployer%201.0.8-SNAPSHOT.jar
> java.io.IOException: Referenced file does not exist: D:\.m2\repository\org\ow2\bundles\util-plan-deployer\1.0.8-SNAPSHOT\util-plan-deployer%201.0.8-SNAPSHOT.jar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message