[
https://issues.apache.org/jira/browse/KARAF-7856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17950033#comment-17950033
]
Matt Pavlovich commented on KARAF-7856:
---------------------------------------
The fix is to add an isAssignableFrom check in the shell acl.
This allows users to extend Karaf's RolePrincipal without having to specify the
class for all commands in the etc/*acl*.cfg files
Improved unit test to include an extended RolePrincipal to catch any future
regressions
> Improve support for JAAS roles that extend Karaf's RolePrincipal
> -----------------------------------------------------------------
>
> Key: KARAF-7856
> URL: https://issues.apache.org/jira/browse/KARAF-7856
> Project: Karaf
> Issue Type: Improvement
> Affects Versions: 4.3.7
> Reporter: Matt Pavlovich
> Assignee: Jean-Baptiste Onofré
> Priority: Minor
> Fix For: 4.5.0, 4.4.8
>
>
> {noformat}
> admin@root()> bundle:
> bundle:capabilities (Displays OSGi capabilities of a given bundles)
> bundle:id (Gets the bundle
> ID) bundle:services (Lists OSGi services per
> Bundle)
> bundle:classes (Displays a list of classes/resources contained in the bundle)
> bundle:info (Displays detailed information of a given
> bundles) bundle:start-level (Gets or sets the start level
> of a bundle)
> bundle:diag (Displays diagnostic information why a bundle is not Active)
> bundle:list (Lists all installed
> bundles) bundle:status (Get the bundle
> current status)
> bundle:dynamic-import (Enables/disables dynamic-import for a given bundle)
> bundle:load-test (Load test bundle
> lifecycle) bundle:tree-show (Shows the tree of bundles based on the wiring
> information)
> bundle:find-class (Locates a specified class in any deployed bundle)
> bundle:requirements (Displays OSGi requirements of a given
> bundles)
> bundle:headers (Displays OSGi headers of a given bundles)
> bundle:resolve (Resolve
> bundles)
> {noformat}
> Classes are present:
> {noformat}
> org/apache/karaf/bundle/command/BundleCommand.class | exported: false
> org/apache/karaf/bundle/command/BundlesCommand.class | exported: false
> org/apache/karaf/bundle/command/Capabilities.class | exported: false
> org/apache/karaf/bundle/command/Classes.class | exported: false
> org/apache/karaf/bundle/command/Diag.class | exported: false
> org/apache/karaf/bundle/command/DynamicImport.class | exported: false
> org/apache/karaf/bundle/command/FindClass.class | exported: false
> org/apache/karaf/bundle/command/Headers$1.class | exported: false
> org/apache/karaf/bundle/command/Headers$2.class | exported: false
> org/apache/karaf/bundle/command/Headers$ClauseFormatter.class | exported:
> false
> org/apache/karaf/bundle/command/Headers.class | exported: false
> org/apache/karaf/bundle/command/Id.class | exported: false
> org/apache/karaf/bundle/command/Info.class | exported: false
> org/apache/karaf/bundle/command/Install.class | exported: false
> org/apache/karaf/bundle/command/List$1.class | exported: false
> org/apache/karaf/bundle/command/List.class | exported: false
> org/apache/karaf/bundle/command/LoadTest.class | exported: false
> org/apache/karaf/bundle/command/Refresh.class | exported: false
> org/apache/karaf/bundle/command/Requirements.class | exported: false
> org/apache/karaf/bundle/command/Resolve.class | exported: false
> org/apache/karaf/bundle/command/Restart.class | exported: false
> org/apache/karaf/bundle/command/Services.class | exported: false
> org/apache/karaf/bundle/command/ShowBundleTree.class | exported: false
> org/apache/karaf/bundle/command/Start.class | exported: false
> org/apache/karaf/bundle/command/StartLevel.class | exported: false
> org/apache/karaf/bundle/command/Status.class | exported: false
> org/apache/karaf/bundle/command/Stop.class | exported: false
> org/apache/karaf/bundle/command/Uninstall.class | exported: false
> org/apache/karaf/bundle/command/Update.class | exported: false
> org/apache/karaf/bundle/command/Watch.class | exported: false
> org/apache/karaf/bundle/command/bundletree/Node.class | exported: false
> org/apache/karaf/bundle/command/bundletree/Tree$Converter.class | exported:
> false
> org/apache/karaf/bundle/command/bundletree/Tree.class | exported: false
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)