Hi Peter,

Thank you for your reply.

On Wed, 4 Jun 2008 08:14:42 +0200
Peter Kriens <[EMAIL PROTECTED]> wrote:

Peter> I think it is clear that the install must not be successful, it would
Peter> void the whole LIFECYCLE action for installBundle it it was.
Peter> 
Peter> However, the spec could be more explicit about this. In 6.1.6.15  
Peter> (installBundle)
Peter> you see the following text:
Peter> 
Peter>    SecurityException If the caller does not have the appropriate  
Peter> AdminPer-
Peter>    mission[installed bundle,LIFECYCLE], and the Java Runtime Environment
Peter>    supports permissions.
Peter> 
Peter> Note that installed_bundle is written in the past tense. I.e. the  
Peter> framework
Peter> must install the bundle and then check AdminPermission. It must then  
Peter> undo any work
Peter> it has done so far.
Peter> 
Peter> I'll see if I can clarify this more in the spec.

I got it.

Clariying this more in the spec must be helpful to understand framework
behavior correctly.

Best regards,
=======
Ikuo YAMASAKI


Peter> 
Peter> Kind regards,
Peter> 
Peter>  Peter Kriens
Peter> 
Peter> 
Peter> 
Peter> 
Peter> On 15 mei 2008, at 03:32, Ikuo Yamasaki wrote:
Peter> 
Peter> > Hi,
Peter> >
Peter> > I have a question on AdminPermission in R4.
Peter> >
Peter> > ---------------------
Peter> > [Precondition]
Peter> >
Peter> > Bundle A has
Peter> > AdminPermission("(location=https://www.acme.com/a/*)","lifecycle")
Peter> > but not AdminPermission("(location=https://www.acme.com/b/ 
Peter> > *)","lifecycle").
Peter> >
Peter> > Q. In that situation, if Bundle A tries to call
Peter> > BundleContext#installBundle(https://www.acme.com/b/bundleB.jar),
Peter> > what should happen ?
Peter> >
Peter> > Answer 1: because it doesn't have 
AdminPermission("(location=https://www.acme.com/b/*) 
Peter> > ","lifecycle"),
Peter> > SecurityException must be thrown (and fail to install the bundle)).
Peter> >
Peter> > Answer 2: The installation should be succeed because there is no
Peter> > location before the method is called.
Peter> > ----------------------
Peter> >
Peter> > Answering my question would be very appreciated.
Peter> >
Peter> > Best regards,
Peter> >
Peter> > ---------------------
Peter> > NTT Cyber Solutions Laboratories
Peter> >
Peter> >     Ikuo YAMASAKI
Peter> >        E-mail: [EMAIL PROTECTED]
Peter> > TEL +81-46-859-8537  FAX +81-46-855-1282
Peter> >
Peter> >
Peter> > _______________________________________________
Peter> > OSGi Developer Mail List
Peter> > osgi-dev@mail.osgi.org
Peter> > https://mail.osgi.org/mailman/listinfo/osgi-dev
Peter> 
Peter> 
Peter> _______________________________________________
Peter> OSGi Developer Mail List
Peter> osgi-dev@mail.osgi.org
Peter> https://mail.osgi.org/mailman/listinfo/osgi-dev
Peter> 


_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to