Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The DS 1.3 spec requires multiple service.pid values to be coalesced into a Collection<String> but only if there are multiple values. When there is only a single service.pid value, it must remain a scalar String.
Furthermore, DS 1.3 adds support for a component to specify multiple pid values in a whitespace separated list. See section 112.4.4:
"Multiple configuration PIDs can be specified by using a whitespace separated list in the attribute."
For example:
configuration-pid="org.osgi.test.cases.component.tb23.MultiplePID1 org.osgi.test.cases.component.tb23.MultiplePID2"
When specifying multiple pids (with configuration-policy="require" and the configurations present in CM), the current implementation does not satisfy the component. So the component is not activated and does not register its service.