Re: [equinox-dev] Multiple bsnversion in equinox

2011-06-28 Thread Todorova, Katya
So if simple configurator comes to picture there's no way to guess whether the 
initially installed framework and the one listed in bundles.info are the 
same?
I saw equinox location is system bundle so if it's presented in bundles.info 
there's no way to prevent second installation of the framework ... which is a 
kind of strange and is causing issues in Virgo scenario.
(Initially installed - the one that hosts simple configurator before its 
first start )

There is a bug describing the issue in more details:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=350356

Comments are welcome.

Thanks,
Katya

From: equinox-dev-boun...@eclipse.org [mailto:equinox-dev-boun...@eclipse.org] 
On Behalf Of Thomas Watson
Sent: Monday, June 27, 2011 4:17 PM
To: Equinox development mailing list
Subject: Re: [equinox-dev] Multiple bsnversion in equinox


Yes this is correct. Where the bits are located on disk has no influence on if 
the installation of the bundle is considered unique or not. The location string 
is treated as opaque by the framework when determining if the installation 
location is unique or not.

Tom



[cid:image001.gif@01CC35BE.BC0C68D0]Todorova, Katya ---06/24/2011 11:13:33 
AM---So location uniqueness is based on simple string comparison?

From:


Todorova, Katya katya.todor...@sap.com


To:


Equinox development mailing list equinox-dev@eclipse.org


Date:


06/24/2011 11:13 AM


Subject:


Re: [equinox-dev] Multiple bsnversion in equinox





So location uniqueness is based on simple string comparison?
I thought Equinox resolves the string passed as location and compares files to 
which locations point...

So you say that if I install ./temp/my.jar and ./temp/../temp/my.jar it will 
result in two bundles installed and that's the correct behaviour?

Thanks for your help,
Katya


-Original Message-
From: equinox-dev-boun...@eclipse.org [mailto:equinox-dev-boun...@eclipse.org] 
On Behalf Of John W Ross
Sent: Friday, June 24, 2011 6:25 PM
To: Equinox development mailing list
Subject: Re: [equinox-dev] Multiple bsnversion in equinox

I'm not sure I understand why you're surprised?

If you install a bundle with the same location and the already installed
bundle is visible to the context, the install will succeed and you will
receive a reference to the already installed bundle. If the already
installed bundle is not visible to the context, the install will fail and
you will receive a BundleException indicating the operation was rejected
by a hook. This will happen regardless of the value of the bsnversion
property because locations must be unique.

If you install a bundle with the same bsn and version as an existing
bundle, and the location is unique, and the bsnversion property is set to
'single', the install will fail and you will receive a BundleException
indicating the bundle is a duplicate. If the bsnversion property is set to
'multiple', the install will succeed and you will receive a new Bundle
object with a unique ID. Whether or not the bit source is the same should
not make any difference as far as I know.

~ John





Todorova, Katya katya.todor...@sap.com
Sent by: equinox-dev-boun...@eclipse.org
06/24/2011 08:27 AM
Please respond to
Equinox development mailing list equinox-dev@eclipse.org


To
Equinox development mailing list equinox-dev@eclipse.org
cc

Subject
[equinox-dev] Multiple bsnversion in equinox






Hi,

I start Equinox with org.osgi.framework.bsnversion=multiple and try to
install one bundle twice:

osgi install reference:
file:C:\eclipses\eclipse-SDK-3.7RC4-win32-x86_64\eclipse\plugins\com.ibm.icu.source_4.4.2.v20110208.jarfile:///C:\eclipses\eclipse-SDK-3.7RC4-win32-x86_64\eclipse\plugins\com.ibm.icu.source_4.4.2.v20110208.jar
Bundle id is 5

osgi install initial@reference:
file:C:\eclipses\eclipse-SDK-3.7RC4-win32-x86_64\eclipse\plugins\com.ibm.icu.source_4.4.2.v20110208.jarfile:///C:\eclipses\eclipse-SDK-3.7RC4-win32-x86_64\eclipse\plugins\com.ibm.icu.source_4.4.2.v20110208.jar
Bundle id is 6

The installation is successful even if locations strings are not equal but
resolve to the same file.
Is that expected?

Thanks,
Katya___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev
___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev

inline: image001.gifinline: image003.pnginline: image004.png___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


Re: [equinox-dev] Multiple bsnversion in equinox

2011-06-27 Thread Thomas Watson

Yes this is correct.  Where the bits are located on disk has no influence
on if the installation of the bundle is considered unique or not.  The
location string is treated as opaque by the framework when determining if
the installation location is unique or not.

Tom




|
| From:  |
|
  
--|
  |Todorova, Katya katya.todor...@sap.com   
 |
  
--|
|
| To:|
|
  
--|
  |Equinox development mailing list equinox-dev@eclipse.org   
 |
  
--|
|
| Date:  |
|
  
--|
  |06/24/2011 11:13 AM  
 |
  
--|
|
| Subject:   |
|
  
--|
  |Re: [equinox-dev] Multiple bsnversion in equinox 
 |
  
--|





So location uniqueness is based on simple string comparison?
I thought Equinox resolves the string passed as location and compares files
to which locations point...

So you say that if I install ./temp/my.jar and ./temp/../temp/my.jar it
will result in two bundles installed and that's the correct behaviour?

Thanks for your help,
Katya


-Original Message-
From: equinox-dev-boun...@eclipse.org [
mailto:equinox-dev-boun...@eclipse.org] On Behalf Of John W Ross
Sent: Friday, June 24, 2011 6:25 PM
To: Equinox development mailing list
Subject: Re: [equinox-dev] Multiple bsnversion in equinox

I'm not sure I understand why you're surprised?

If you install a bundle with the same location and the already installed
bundle is visible to the context, the install will succeed and you will
receive a reference to the already installed bundle. If the already
installed bundle is not visible to the context, the install will fail and
you will receive a BundleException indicating the operation was rejected
by a hook. This will happen regardless of the value of the bsnversion
property because locations must be unique.

If you install a bundle with the same bsn and version as an existing
bundle, and the location is unique, and the bsnversion property is set to
'single', the install will fail and you will receive a BundleException
indicating the bundle is a duplicate. If the bsnversion property is set to
'multiple', the install will succeed and you will receive a new Bundle
object with a unique ID. Whether or not the bit source is the same should
not make any difference as far as I know.

~ John





Todorova, Katya katya.todor...@sap.com
Sent by: equinox-dev-boun...@eclipse.org
06/24/2011 08:27 AM
Please respond to
Equinox development mailing list equinox-dev@eclipse.org


To
Equinox development mailing list equinox-dev@eclipse.org
cc

Subject
[equinox-dev] Multiple bsnversion in equinox






Hi,

I start Equinox with org.osgi.framework.bsnversion=multiple and try to
install one bundle twice:

osgi install reference:
file:C:\eclipses\eclipse-SDK-3.7RC4-win32-x86_64\eclipse\plugins
\com.ibm.icu.source_4.4.2.v20110208.jar
Bundle id is 5

osgi install initial@reference:
file:C:\eclipses\eclipse-SDK-3.7RC4-win32-x86_64\eclipse\plugins
\com.ibm.icu.source_4.4.2.v20110208.jar
Bundle id is 6

The installation is successful even if locations strings are not equal but
resolve to the same file.
Is that expected?

Thanks,
Katya___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman

Re: [equinox-dev] Multiple bsnversion in equinox

2011-06-24 Thread John W Ross
I'm not sure I understand why you're surprised?

If you install a bundle with the same location and the already installed 
bundle is visible to the context, the install will succeed and you will 
receive a reference to the already installed bundle. If the already 
installed bundle is not visible to the context, the install will fail and 
you will receive a BundleException indicating the operation was rejected 
by a hook. This will happen regardless of the value of the bsnversion 
property because locations must be unique.

If you install a bundle with the same bsn and version as an existing 
bundle, and the location is unique, and the bsnversion property is set to 
'single', the install will fail and you will receive a BundleException 
indicating the bundle is a duplicate. If the bsnversion property is set to 
'multiple', the install will succeed and you will receive a new Bundle 
object with a unique ID. Whether or not the bit source is the same should 
not make any difference as far as I know.

~ John





Todorova, Katya katya.todor...@sap.com 
Sent by: equinox-dev-boun...@eclipse.org
06/24/2011 08:27 AM
Please respond to
Equinox development mailing list equinox-dev@eclipse.org


To
Equinox development mailing list equinox-dev@eclipse.org
cc

Subject
[equinox-dev] Multiple bsnversion in equinox






Hi, 
 
I start Equinox with org.osgi.framework.bsnversion=multiple and try to 
install one bundle twice:
 
osgi install reference:
file:C:\eclipses\eclipse-SDK-3.7RC4-win32-x86_64\eclipse\plugins\com.ibm.icu.source_4.4.2.v20110208.jar
Bundle id is 5
 
osgi install initial@reference:
file:C:\eclipses\eclipse-SDK-3.7RC4-win32-x86_64\eclipse\plugins\com.ibm.icu.source_4.4.2.v20110208.jar
Bundle id is 6
 
The installation is successful even if locations strings are not equal but 
resolve to the same file.
Is that expected? 
 
Thanks, 
Katya___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


Re: [equinox-dev] Multiple bsnversion in equinox

2011-06-24 Thread Todorova, Katya
So location uniqueness is based on simple string comparison? 
I thought Equinox resolves the string passed as location and compares files to 
which locations point...   

So you say that if I install ./temp/my.jar and ./temp/../temp/my.jar it will 
result in two bundles installed and that's the correct behaviour? 

Thanks for your help,
Katya


-Original Message-
From: equinox-dev-boun...@eclipse.org [mailto:equinox-dev-boun...@eclipse.org] 
On Behalf Of John W Ross
Sent: Friday, June 24, 2011 6:25 PM
To: Equinox development mailing list
Subject: Re: [equinox-dev] Multiple bsnversion in equinox

I'm not sure I understand why you're surprised?

If you install a bundle with the same location and the already installed 
bundle is visible to the context, the install will succeed and you will 
receive a reference to the already installed bundle. If the already 
installed bundle is not visible to the context, the install will fail and 
you will receive a BundleException indicating the operation was rejected 
by a hook. This will happen regardless of the value of the bsnversion 
property because locations must be unique.

If you install a bundle with the same bsn and version as an existing 
bundle, and the location is unique, and the bsnversion property is set to 
'single', the install will fail and you will receive a BundleException 
indicating the bundle is a duplicate. If the bsnversion property is set to 
'multiple', the install will succeed and you will receive a new Bundle 
object with a unique ID. Whether or not the bit source is the same should 
not make any difference as far as I know.

~ John





Todorova, Katya katya.todor...@sap.com 
Sent by: equinox-dev-boun...@eclipse.org
06/24/2011 08:27 AM
Please respond to
Equinox development mailing list equinox-dev@eclipse.org


To
Equinox development mailing list equinox-dev@eclipse.org
cc

Subject
[equinox-dev] Multiple bsnversion in equinox






Hi, 
 
I start Equinox with org.osgi.framework.bsnversion=multiple and try to 
install one bundle twice:
 
osgi install reference:
file:C:\eclipses\eclipse-SDK-3.7RC4-win32-x86_64\eclipse\plugins\com.ibm.icu.source_4.4.2.v20110208.jar
Bundle id is 5
 
osgi install initial@reference:
file:C:\eclipses\eclipse-SDK-3.7RC4-win32-x86_64\eclipse\plugins\com.ibm.icu.source_4.4.2.v20110208.jar
Bundle id is 6
 
The installation is successful even if locations strings are not equal but 
resolve to the same file.
Is that expected? 
 
Thanks, 
Katya___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev
___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


Re: [equinox-dev] Multiple bsnversion in equinox

2011-06-24 Thread BJ Hargrave
Yes. Location is an opaque string. While the framework may interpret the 
string as a URL to obtain the bits of a bundle, it is otherwise an opaque 
string.
-- 

BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the OSGi Alliance
hargr...@us.ibm.com

office: +1 386 848 1781
mobile: +1 386 848 3788





From:   Todorova, Katya katya.todor...@sap.com
To: Equinox development mailing list equinox-dev@eclipse.org
Date:   2011/06/24 12:13
Subject:Re: [equinox-dev] Multiple bsnversion in equinox
Sent by:equinox-dev-boun...@eclipse.org



So location uniqueness is based on simple string comparison? 
I thought Equinox resolves the string passed as location and compares 
files to which locations point... 

So you say that if I install ./temp/my.jar and ./temp/../temp/my.jar it 
will result in two bundles installed and that's the correct behaviour? 

Thanks for your help,
Katya


-Original Message-
From: equinox-dev-boun...@eclipse.org [
mailto:equinox-dev-boun...@eclipse.org] On Behalf Of John W Ross
Sent: Friday, June 24, 2011 6:25 PM
To: Equinox development mailing list
Subject: Re: [equinox-dev] Multiple bsnversion in equinox

I'm not sure I understand why you're surprised?

If you install a bundle with the same location and the already installed 
bundle is visible to the context, the install will succeed and you will 
receive a reference to the already installed bundle. If the already 
installed bundle is not visible to the context, the install will fail and 
you will receive a BundleException indicating the operation was rejected 
by a hook. This will happen regardless of the value of the bsnversion 
property because locations must be unique.

If you install a bundle with the same bsn and version as an existing 
bundle, and the location is unique, and the bsnversion property is set to 
'single', the install will fail and you will receive a BundleException 
indicating the bundle is a duplicate. If the bsnversion property is set to 

'multiple', the install will succeed and you will receive a new Bundle 
object with a unique ID. Whether or not the bit source is the same should 
not make any difference as far as I know.

~ John





Todorova, Katya katya.todor...@sap.com 
Sent by: equinox-dev-boun...@eclipse.org
06/24/2011 08:27 AM
Please respond to
Equinox development mailing list equinox-dev@eclipse.org


To
Equinox development mailing list equinox-dev@eclipse.org
cc

Subject
[equinox-dev] Multiple bsnversion in equinox






Hi, 
 
I start Equinox with org.osgi.framework.bsnversion=multiple and try to 
install one bundle twice:
 
osgi install reference:
file:C:\eclipses\eclipse-SDK-3.7RC4-win32-x86_64\eclipse\plugins\com.ibm.icu.source_4.4.2.v20110208.jar

Bundle id is 5
 
osgi install initial@reference:
file:C:\eclipses\eclipse-SDK-3.7RC4-win32-x86_64\eclipse\plugins\com.ibm.icu.source_4.4.2.v20110208.jar

Bundle id is 6
 
The installation is successful even if locations strings are not equal but 

resolve to the same file.
Is that expected? 
 
Thanks, 
Katya___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev
___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev

___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev