[
https://issues.apache.org/jira/browse/FELIX-1103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704654#action_12704654
]
Ulf Dittmer commented on FELIX-1103:
------------------------------------
It doesn't seem to mention that in the OSGi spec, but since it's a standard
feature of java.io.FilePermission (mentioned in its javadocs), I think it's a
reasonable assumption that it should work in an OSGi context as well.
Searching a bit finds numerous pages that indicate it works with the Spring and
Equinox OSGi implementations as well (not a sure sign that that's the right
thing to do, of course, but why would an OSGi implementation not support a
standard Java feature? It would complicate matters a lot if developers had to
assume that there might be differences between "Java" and "Java in an OSGi
context".)
> PermissionAdmin service can't handle java.ioFilePermission for "<<ALL FILES>>"
> ------------------------------------------------------------------------------
>
> Key: FELIX-1103
> URL: https://issues.apache.org/jira/browse/FELIX-1103
> Project: Felix
> Issue Type: Bug
> Components: Conditional Permission Admin, Permission Admin
> Affects Versions: felix-1.6.0
> Reporter: Ulf Dittmer
>
> 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).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.