Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-1908

PreferencesService doesn't work if a PermissionAdmin is present

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • prefs-1.0.4
    • prefs-1.0.6
    • Preferences Service
    • None

    Description

      If a PermissionAdmin service is present, then a bundle making use of PreferencesService currently needs a "org.osgi.service.prefs.PreferencesService" "get" ServicePermission (which is as it should be), but also a FilePermission for the felix-cache subdirectory that contains the data for the PreferencesService bundle. WIthout it, an attempt to alter preferences results in a security exception.

      A bundle should not have (or need) file access to another bundle's private data.

      Attachments

        1. felix.preferences.security.patch
          6 kB
          Sanjeeb Kumar Sahoo
        2. FelixPrefsServiceTest.zip
          30 kB
          Sanjeeb Kumar Sahoo

        Activity

          People

            sahoo Sanjeeb Kumar Sahoo
            udittmer Ulf Dittmer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: