Holger Friedrich created FELIX-6877:
---------------------------------------
Summary: maven-bundle-plugin: blueprint Import-Service filter
written unquoted, truncated with bnd >= 7.2
Key: FELIX-6877
URL: https://issues.apache.org/jira/browse/FELIX-6877
Project: Felix
Issue Type: Bug
Components: Maven Bundle Plugin
Reporter: Holger Friedrich
With blueprint analysis enabled (nsh_interface / nsh_namespace, default
service_mode), the
Import-Service filter for custom namespaces ends up truncated at the first '='
since the update
to bnd >= 7.2 (maven-bundle-plugin 6.1.0+):
{noformat}
expected: Import-Service:
org.apache.aries.blueprint.NamespaceHandler;filter=(osgi.service.blueprint.namespace=http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0)
actual: Import-Service:
org.apache.aries.blueprint.NamespaceHandler;filter="(osgi.service.blueprint.namespace"
{noformat}
BlueprintPlugin serializes the clauses with felix-utils Clause.toString(),
which only quotes
values containing ','. The filter is written unquoted, and bnd cuts such a
value at the first '='
when it parses the header again (which it does since 7.2; plugin 6.0.2 + bnd
7.2.3 shows it too, 6.2.0 + bnd 7.0.0 does not).
Workaround: <service_mode>generic</service_mode>.
Seen in Apache Karaf (apache/karaf#2786).
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)