Konrad Windszus created SLING-10707:
---------------------------------------
Summary: Comma in selector not correctly escaped in capability
header
Key: SLING-10707
URL: https://issues.apache.org/jira/browse/SLING-10707
Project: Sling
Issue Type: Bug
Components: Maven Plugins and Archetypes
Affects Versions: Scripting Bundle Maven Plugin 0.3.0
Reporter: Konrad Windszus
Fix For: Scripting Bundle Maven Plugin 0.4.0
The manual escaping in
https://github.com/apache/sling-scriptingbundle-maven-plugin/blob/master/src/main/java/org/apache/sling/scriptingbundle/plugin/capability/Capabilities.java
is not enough for list items containing a comma.
According to
http://docs.osgi.org/specification/osgi.core/7.0.0/framework.module.html#i3306043
bq. Commas or reverse solidi ('\' \u005C) that are part of an element value
must be escaped by prefixing them with a reverse solidus. In practice, this
requires escaping with two reverse solidi because a reverse solidus must
already be escaped in strings.
Instead of doing the escaping manually (and always use quoted strings) I would
rather leverage {{aQute.bnd.header.OSGiHeader}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)