Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » BundleContext.installBundle() and URLs with spaces
BundleContext.installBundle() and URLs with spaces [message #480920] Tue, 18 August 2009 23:06 Go to next message
vinay is currently offline vinayFriend
Messages: 4
Registered: July 2009
Junior Member
I am trying to install and start bundles from within the start of one
bundle using BundleContext.installBundle() ( passing URLs to it )

It seems like BundleContext.installBundle() does not handle URLs with
space in them e.g. "file:/d:/plugins%20folder/test_bundle_1.0.0/"

I get "java.util.zip.ZipException: error in opening zip file"

Is there a way to get around this ?

Thanks,
Vinay
Re: BundleContext.installBundle() and URLs with spaces [message #483650 is a reply to message #480920] Wed, 02 September 2009 13:16 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
vinay wrote:
> I am trying to install and start bundles from within the start of one
> bundle using BundleContext.installBundle() ( passing URLs to it )
>
> It seems like BundleContext.installBundle() does not handle URLs with
> space in them e.g. "file:/d:/plugins%20folder/test_bundle_1.0.0/"
>
> I get "java.util.zip.ZipException: error in opening zip file"
>
> Is there a way to get around this ?
> Thanks,
> Vinay
>
>
>

The file protocol handler causes us issues here. try not encoding the
spaces with %20 (e.g. file:/d:/plugins folder/test_bundle_1.0.0/)

Tom
Re: BundleContext.installBundle() and URLs with spaces [message #639404 is a reply to message #483650] Tue, 16 November 2010 12:42 Go to previous message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
This is now fixed in 3.6.0: https://bugs.eclipse.org/bugs/show_bug.cgi?id=290193
Previous Topic:Headless JUnit4 and DS problem.
Next Topic:BundleContext.InstallBundle doesn't support %20% space encode in bundle path
Goto Forum:
  


Current Time: Thu Apr 25 16:25:52 GMT 2024

Powered by FUDForum. Page generated in 0.02899 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top