You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Ulf Dittmer (JIRA)" <ji...@apache.org> on 2009/11/30 11:01:20 UTC

[jira] Commented: (FELIX-1900) CPA not consulted for re-installed bundle

    [ https://issues.apache.org/jira/browse/FELIX-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12783592#action_12783592 ] 

Ulf Dittmer commented on FELIX-1900:
------------------------------------

I take your point. So, effectively, only one of PA or CPA can be used for any given bundle, but not both - less useful than I had hoped for, but apparently what the spec prescribes.

> CPA not consulted for re-installed bundle
> -----------------------------------------
>
>                 Key: FELIX-1900
>                 URL: https://issues.apache.org/jira/browse/FELIX-1900
>             Project: Felix
>          Issue Type: Bug
>          Components: Permission Admin
>    Affects Versions: felix-2.0.2
>            Reporter: Ulf Dittmer
>            Assignee: Karl Pauls
>         Attachments: PermissionAdminImpl.diff
>
>
> If a bundle is installed at the same location under which another bundle was installed and uninstalled before, then the CPA is no longer consulted if the bundle also has PA permissions. That can lead to the new bundle not being installed if it depends on permissions granted by the CPA.
> This is caused by the m_store Map in the PermissionAdminImpl still having permission information for that location; see the use of the boolean "file" in the hasPermission method. If it gets set to true due to permissions of the old (now uninstalled) bundle being cached, then the method returns false and the CPA is not consulted.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.