Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Scripting Bundle Maven Plugin 0.3.0
-
None
Description
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
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
Attachments
Issue Links
- relates to
-
SLING-7516 ResourceRuntimeExtension: Selectors containing a comma are not treated correctly
-
- Closed
-
- links to