[
https://issues.apache.org/jira/browse/KARAF-5089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15964119#comment-15964119
]
ASF subversion and git services commented on KARAF-5089:
--------------------------------------------------------
Commit b3572bff5f4e1c52f909420a56eee814ce0978dd in karaf's branch
refs/heads/master from [~gzres]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=b3572bf ]
[KARAF-5089] Correctly filter out all bundle contexts when using
GuardingEventHook
> GuardingEventHook may stop filtering listeners if one of the bundles is not
> valid
> ---------------------------------------------------------------------------------
>
> Key: KARAF-5089
> URL: https://issues.apache.org/jira/browse/KARAF-5089
> Project: Karaf
> Issue Type: Bug
> Components: karaf-security
> Affects Versions: 4.0.9, 4.1.1
> Reporter: Grzegorz Grzybek
> Assignee: Grzegorz Grzybek
> Fix For: 4.1.2, 4.0.10
>
>
> I found a leak, where SCR component publishes service related to osgi.command
> and registration event is:
> * both handled in
> {{org.apache.karaf.service.guard.impl.GuardProxyCatalog#handleProxificationForHook()}}
> * passed to
> {{org.apache.karaf.shell.security.impl.SecuredCommandProcessorImpl#commandTracker}}
> The reason for this is that one of the bundles iterated over in
> {{org.apache.karaf.service.guard.impl.GuardingEventHook#event}} may throw
> IllegalStateException when invoking bundleContext.getBundle().getBundleId().
> When the service for command is then unregistered, the unregistration event
> may be this time filtered out and we have duplicate command in
> {{org.apache.felix.gogo.runtime.CommandProcessorImpl#commands}}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)