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 2010/07/04 16:39:50 UTC

[jira] Created: (FELIX-2462) Preferences Service does not work in the presence of the Security Service

Preferences Service does not work in the presence of the Security Service
-------------------------------------------------------------------------

                 Key: FELIX-2462
                 URL: https://issues.apache.org/jira/browse/FELIX-2462
             Project: Felix
          Issue Type: Bug
          Components: Framework Security, Preferences Service
    Affects Versions: prefs-1.0.4, framework.security-1.2.0
         Environment: Java 5 on OS X 10.5, but that's most likely irrelevant
            Reporter: Ulf Dittmer


Trying to install the Prefs 1.0.4 bundle into a Felix container in which Security 1.2.0 is installed results in this stack trace:

org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.felix.prefs [2]: Unable to resolve 2.0: missing requirement [2.0] package; (package=org.apache.felix.prefs) - [2.0] package; (package=org.apache.felix.prefs)
     at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3421)
     at org.apache.felix.framework.Felix.startBundle(Felix.java:1754)
     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)

Using Prefs 1.0.4 without the security framework works fine; Felix version is 3.0.1.

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


[jira] Commented: (FELIX-2462) Preferences Service does not work in the presence of the Security Service

Posted by "Karl Pauls (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885073#action_12885073 ] 

Karl Pauls commented on FELIX-2462:
-----------------------------------

Did you give the preferences bundle the permission to export the org.apache.felix.prefs package?

> Preferences Service does not work in the presence of the Security Service
> -------------------------------------------------------------------------
>
>                 Key: FELIX-2462
>                 URL: https://issues.apache.org/jira/browse/FELIX-2462
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework Security, Preferences Service
>    Affects Versions: framework.security-1.2.0, prefs-1.0.4
>         Environment: Java 5 on OS X 10.5, but that's most likely irrelevant
>            Reporter: Ulf Dittmer
>
> Trying to install the Prefs 1.0.4 bundle into a Felix container in which Security 1.2.0 is installed results in this stack trace:
> org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.felix.prefs [2]: Unable to resolve 2.0: missing requirement [2.0] package; (package=org.apache.felix.prefs) - [2.0] package; (package=org.apache.felix.prefs)
>      at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3421)
>      at org.apache.felix.framework.Felix.startBundle(Felix.java:1754)
>      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
>      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
> Using Prefs 1.0.4 without the security framework works fine; Felix version is 3.0.1.

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


[jira] Commented: (FELIX-2462) Preferences Service does not work in the presence of the Security Service

Posted by "Ulf Dittmer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887175#action_12887175 ] 

Ulf Dittmer commented on FELIX-2462:
------------------------------------

I'm assigning it AllPermission (as I do for all "trusted" bundles).

But the problem turned out to be that LogService (which is a dependency) wasn't installed before PreferencesService; so I guess that the actual bug is that the error message is misleading.

> Preferences Service does not work in the presence of the Security Service
> -------------------------------------------------------------------------
>
>                 Key: FELIX-2462
>                 URL: https://issues.apache.org/jira/browse/FELIX-2462
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework Security, Preferences Service
>    Affects Versions: framework.security-1.2.0, prefs-1.0.4
>         Environment: Java 5 on OS X 10.5, but that's most likely irrelevant
>            Reporter: Ulf Dittmer
>
> Trying to install the Prefs 1.0.4 bundle into a Felix container in which Security 1.2.0 is installed results in this stack trace:
> org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.felix.prefs [2]: Unable to resolve 2.0: missing requirement [2.0] package; (package=org.apache.felix.prefs) - [2.0] package; (package=org.apache.felix.prefs)
>      at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3421)
>      at org.apache.felix.framework.Felix.startBundle(Felix.java:1754)
>      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
>      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
> Using Prefs 1.0.4 without the security framework works fine; Felix version is 3.0.1.

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