You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2021/08/06 14:56:00 UTC
[jira] [Created] (SLING-10707) Comma in selector not correctly
escaped in capability header
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)