I think your problem is that you didn't install the framework.security
extension. Without it, bundles have allpermission. In your case that
explains the difference in behaviour as in the first case, you still
have the framework protection domain on the stack while in the second
case (the edt one) you only have the protection domain of the bundle
on the stack (which gets allpermission by default as explained above).

regards,

Karl

On Wed, Feb 23, 2011 at 4:39 PM, Elvy <[email protected]> wrote:
>
> Hello,
>
> I'm having issue with permissions checking.
>
> I noticed that my permission is correctly [allowed | denied] when checked
> outside the AWT EDT thread, whereas it always allowed when checked within
> the EDT (through invokeLater, invokeAndWait, or even button click
> callbacks).
>
> I've enclosed a fully working FELIX 3.0.8 environment along with sources.
> Just execute the run.bat file and check the output on the console.
>
> One can edit the test.policy file which is in the conf folder to either
> allow or deny the DummyPermission.
>
> Any idea why the permission is always allowed in the EDT?
>
> http://old.nabble.com/file/p30995963/felix3.0.8_permission_EDT_test.zip
> felix3.0.8_permission_EDT_test.zip
>
> -----
> Tell me something you don't know!
> --
> View this message in context: 
> http://old.nabble.com/My-Permission-is-always-allowed-from-Event-Dispatching-Thread-tp30995963p30995963.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Karl Pauls
[email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to