[
https://issues.apache.org/jira/browse/ARIES-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15928068#comment-15928068
]
Bas commented on ARIES-1443:
----------------------------
This issue was opened to address the difference in behavior between persisted
subsystems and freshly installed subsystems.
When reverting this, the problem you want to address in ARIES-1590 will remain
but will only surface with the following steps:
- Install subsystem 1 related to the issue
- Restart the subsystem.core bundle or the entire container
- Install subsystem 2 which causes the issue
- Issue reproduced
If you ever want to restart the container and install another subsystems the
issue might surface. You should always be able to restart your osgi container
and be able to work with it as it used to work imho.
You can read back the comments which might clarify the issue. This issue also
affects us but appearently this patch is closest to the spec for subsystems.
We are also affected by this and we are making our own patched builds to
deactivate this even for persisted subsystems. That is what works best for us.
Maybe a way forward lies in the last comment by John Ross:
Rather than reopening this and reverting the changes, another option would be
to modify the resolve context used as part of the offline resolution at install
to not return resources that are features to the resolver.
I'm not entirely sure what he meant though (it's been a while since I last
browsed the code), maybe you can ask him or maybe he can elaborate a bit more.
> After a restart the capabilities of a subsystem have changed (seem correct)
> before the restart they seem wrong
> --------------------------------------------------------------------------------------------------------------
>
> Key: ARIES-1443
> URL: https://issues.apache.org/jira/browse/ARIES-1443
> Project: Aries
> Issue Type: Bug
> Components: Subsystem
> Affects Versions: subsystem-2.0.6, subsystem-2.0.8
> Environment: karaf pax-exam
> Reporter: Bas
> Assignee: John Ross
> Labels: test-patch
> Fix For: subsystem-2.1.0
>
> Attachments: CapabilitiesDifferOnRestart.java.patch,
> pax-web-jetty-bundle-4.2.5.jar
>
>
> A feature subsystem should export all capabilities of its constituents and it
> does not do that after a fresh install. After a restart of the subsystem core
> bundle it will export all the capabilities.
> These seems to be a difference in parsing the capabilities of a persisted
> subsystem and a new subsystem.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)