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

PermissionAdmin service can't handle java.ioFilePermission for "<<ALL FILES>>"

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      The PermissionAdmin service does not handle java.io.FilePermissions correctly that use the special "<<ALL FILES>>" syntax for the path. It needs to be special-cased in the org.apache.felix.framework.security.util.Permissions.implies(Permission, Bundle) method instead of being interpreted as a regular file name. I've tested that it's sufficient to wrap all the name/postfix handling in a "if (! "<<ALL FILES>>".equals(name))

      { ... }

      " block.

      Affected Felix version is 1.4, because that's the last one that works with PermissionAdmin service. It would affect Felix 1.6 as well if that could be used at all (see bug Felix-1101).

      I'm not sure if this qualifies as a "Major" bug, but there's no easy workaround (which the online docs say is what makes a "Minor" bug).

      Attachments

        1. Permissions.diff
          2 kB
          Ulf Dittmer
        2. Permissions.diff
          2 kB
          Ulf Dittmer

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            karlpauls Karl Pauls
            udittmer Ulf Dittmer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment