You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "François Fornaciari (JIRA)" <ji...@apache.org> on 2008/09/22 16:10:44 UTC

[jira] Created: (FELIX-731) Installation of referenced files which contain whitepaces fails

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.


[jira] Resolved: (FELIX-731) Installation of referenced files which contain whitepaces fails

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall resolved FELIX-731.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: felix-1.2.2
         Assignee: Richard S. Hall

Ok, I applied Stuart's patch. Francois, if you can test the trunk it would be great. I deployed a new snapshot version in Maven that you can use. If everything looks ok, please close this issue. Thanks.

> 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
>            Assignee: Richard S. Hall
>             Fix For: felix-1.2.2
>
>         Attachments: FELIX-731.patch
>
>
> 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.


[jira] Commented: (FELIX-731) Installation of referenced files which contain whitepaces fails

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633283#action_12633283 ] 

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

Personally I believe this is working as designed, the usage for the install command says:

   install <URL> [<URL> ...]

and the spec for URLs says that spaces should be escaped using %20 - otherwise how could the system tell where one URL ends and another begins?

> 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.


[jira] Commented: (FELIX-731) Installation of referenced files which contain whitepaces fails

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633761#action_12633761 ] 

Richard S. Hall commented on FELIX-731:
---------------------------------------

Stuart, I am confused. Doesn't that patch attempt to decode, not encode, the string? Even then, I don't think this encoding/decoding is going to do the trick for us, since I imagine the created file name will end up taking the encoded value literally.

After closer inspection, this issue is not related to File at all. The issue is in the shell "install" command. It doesn't have a sophisticated parser, so it only breaks up the command line at whitespaces, which cause the line to be improperly parsed. To solve this, we would need to make the parser understand the "\" escape character and then you could escape the space.

The install command uses StringTokenizer, which doesn't support escaping, and to keep things simple we cannot go to the regex stuff.

> 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
>         Attachments: FELIX-731.patch
>
>
> 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.


[jira] Updated: (FELIX-731) Installation of referenced files which contain whitepaces fails

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch updated FELIX-731:
-----------------------------------

    Attachment: FELIX-731.patch

Suggested patch: for 1.3 we can use the URLDecoder class to decode escaped sequences.

> 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
>         Attachments: FELIX-731.patch
>
>
> 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.


[jira] Commented: (FELIX-731) Installation of referenced files which contain whitepaces fails

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633775#action_12633775 ] 

Richard S. Hall commented on FELIX-731:
---------------------------------------

Ah! I wasn't even thinking about it from that perspective. Makes sense.

> 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
>         Attachments: FELIX-731.patch
>
>
> 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.


[jira] Commented: (FELIX-731) Installation of referenced files which contain whitepaces fails

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (FELIX-731) Installation of referenced files which contain whitepaces fails

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633476#action_12633476 ] 

Richard S. Hall commented on FELIX-731:
---------------------------------------

Well, the File constructor that accepts a URI is from Java 1.4, so I am not sure if we should use that. I couldn't quickly see how to convert the string to an URL and get the escaped version to pass into File. Where am I missing it?

> 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.


[jira] Closed: (FELIX-731) Installation of referenced files which contain whitepaces fails

Posted by "François Fornaciari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

François Fornaciari closed FELIX-731.
-------------------------------------


I've tested the last version of the trunk and now the bundle installation works fine. Thanks.

> 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
>            Assignee: Richard S. Hall
>             Fix For: felix-1.2.2
>
>         Attachments: FELIX-731.patch
>
>
> 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.


[jira] Commented: (FELIX-731) Installation of referenced files which contain whitepaces fails

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633769#action_12633769 ] 

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

> Stuart, I am confused. Doesn't that patch attempt to decode, not encode, the string?

Correct, we want to go from the encoded URL "...util-plan-deployer%201.0.8-SNAPSHOT.jar" to the decoded path "...util-plan-deployer 1.0.8-SNAPSHOT.jar", which is exactly the same as what the file URL handler does when the bundle is installed without the reference schema.

ie. at the moment:

   install file:/tmp/a%20b/foo.jar                          works
   install reference:file:/tmp/a%20b/foo.jar        doesn't work

> Even then, I don't think this encoding/decoding is going to do the trick for us, since I imagine the created file name will end up taking the encoded value literally.

it does work, I've tested it locally - the escaped %20 is translated back into the space which is what the filesystem expects.

> After closer inspection, this issue is not related to File at all.

well it is related to URLs, which shouldn't really contain spaces - the install command accepts a series of URLs so the spaces should be escaped (%20) - this patch is just making the reference: logic work the same way as the standard install code (the URL decoding in that case is done internally when the URL connection is opened when copying it to the cache)

> The issue is in the shell "install" command. It doesn't have a sophisticated parser, so it only breaks up the command line at whitespaces, which cause the line to be improperly parsed.

correct, but I think it's clearer to break the arguments on spaces and require that URLs are properly encoded - otherwise we could easily run into other problems because we're essentially creating our own encoding scheme which is different from the spec'd URL scheme.

> To solve this, we would need to make the parser understand the "\" escape character and then you could escape the space.

the problem is that standard encoded URLs like "file:/tmp/a%20b/foo.jar" would still need decoding before they can be used as direct filenames.

> The install command uses StringTokenizer, which doesn't support escaping, and to keep things simple we cannot go to the regex stuff.

we don't need to change the parser - just decode the URL path into a filesystem path...

> 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
>         Attachments: FELIX-731.patch
>
>
> 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.


[jira] Updated: (FELIX-731) Installation of referenced files which contain whitepaces fails

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch updated FELIX-731:
-----------------------------------

    Comment: was deleted

> 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.