[
https://issues.apache.org/jira/browse/SLING-6368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konrad Windszus updated SLING-6368:
-----------------------------------
Description:
If a .content.xml file contains a attribute like this
{code}
configjson="\{
 "title": "Resolved
Segments",
 "icon":
"coral-Icon--targeted",
 "storeMapping":
{
 "s": "segmentation"

},
 "template": "<p
class=\\"contexthub-module-line1\\">Resolved Segments</p><p
class=\\"contexthub-module-line2\\">{{s.summary}}</p>",

"clickable": true,
 "listReference":
"/store/segmentation/segments",
 "listType":
"custom",
 "listItemTemplate":
"<span>{{label}}</span>",

"itemOnClickNoop": true
}"
{code}
the double "\" is not resolved correclty.
In the JCR its value is shown as
{code}
{
"title": "Resolved Segments",
"icon": "coral-Icon--targeted",
"storeMapping": {
"s": "segmentation"
},
"template": "<p class=\\"contexthub-module-line1\\">Resolved Segments</p><p
class=\\"contexthub-module-line2\\">{{s.summary}}</p>",
"clickable": true,
"listReference": "/store/segmentation/segments",
"listType": "custom",
"listItemTemplate": "<span>{{label}}</span>",
"itemOnClickNoop": true
}
{code}
(i.e. it contains double backslashes).
When being deployed through the content-package-maven-plugin the same attribute
is being stored in the JCR with value
{code}
{
"title": "Resolved Segments",
"icon": "coral-Icon--targeted",
"storeMapping": {
"s": "segmentation"
},
"template": "<p class=\"contexthub-module-line1\">Resolved Segments</p><p
class=\"contexthub-module-line2\">{{s.summary}}</p>",
"clickable": true,
"listReference": "/store/segmentation/segments",
"listType": "custom",
"listItemTemplate": "<span>{{label}}</span>",
"itemOnClickNoop": true
}
{code}
(i.e. only with single backslashes).
was:
If a .content.xml file contains a attribute like this
{code}
configjson="\{
 "title": "Resolved
Segments",
 "icon":
"coral-Icon--targeted",
 "storeMapping":
{
 "s": "segmentation"

},
 "template": "<p
class=\\"contexthub-module-line1\\">Resolved Segments</p><p
class=\\"contexthub-module-line2\\">{{s.summary}}</p>",

"clickable": true,
 "listReference":
"/store/segmentation/segments",
 "listType":
"custom",
 "listItemTemplate":
"<span>{{label}}</span>",

"itemOnClickNoop": true
}"
{code}
the double "\" is not resolved correclty.
In the JCR its value is shown as
{code}
{
"title": "Resolved Segments",
"icon": "coral-Icon--targeted",
"storeMapping": {
"s": "segmentation"
},
"template": "<p class=\\"contexthub-module-line1\\">Resolved Segments</p><p
class=\\"contexthub-module-line2\\">{{s.summary}}</p>",
"clickable": true,
"listReference": "/store/segmentation/segments",
"listType": "custom",
"listItemTemplate": "<span>{{label}}</span>",
"itemOnClickNoop": true
}
(i.e. it contains double backslashes).
When being deployed through the content-package-maven-plugin the same attribute
is being stored in the JCR with value
{code}
{
"title": "Resolved Segments",
"icon": "coral-Icon--targeted",
"storeMapping": {
"s": "segmentation"
},
"template": "<p class=\"contexthub-module-line1\">Resolved Segments</p><p
class=\"contexthub-module-line2\">{{s.summary}}</p>",
"clickable": true,
"listReference": "/store/segmentation/segments",
"listType": "custom",
"listItemTemplate": "<span>{{label}}</span>",
"itemOnClickNoop": true
}
{code}
> Double slashes are not correctly resolved during publishing
> -----------------------------------------------------------
>
> Key: SLING-6368
> URL: https://issues.apache.org/jira/browse/SLING-6368
> Project: Sling
> Issue Type: Bug
> Components: IDE
> Affects Versions: Sling Eclipse IDE 1.1.0
> Reporter: Konrad Windszus
>
> If a .content.xml file contains a attribute like this
> {code}
> configjson="\{
 "title": "Resolved
> Segments",
 "icon":
> "coral-Icon--targeted",
 "storeMapping":
> {
 "s": "segmentation"

> },
 "template": "<p
> class=\\"contexthub-module-line1\\">Resolved Segments</p><p
> class=\\"contexthub-module-line2\\">{{s.summary}}</p>",

> "clickable": true,
 "listReference":
> "/store/segmentation/segments",
 "listType":
> "custom",
 "listItemTemplate":
> "<span>{{label}}</span>",

> "itemOnClickNoop": true
}"
> {code}
> the double "\" is not resolved correclty.
> In the JCR its value is shown as
> {code}
> {
> "title": "Resolved Segments",
> "icon": "coral-Icon--targeted",
> "storeMapping": {
> "s": "segmentation"
> },
> "template": "<p class=\\"contexthub-module-line1\\">Resolved
> Segments</p><p class=\\"contexthub-module-line2\\">{{s.summary}}</p>",
> "clickable": true,
> "listReference": "/store/segmentation/segments",
> "listType": "custom",
> "listItemTemplate": "<span>{{label}}</span>",
> "itemOnClickNoop": true
> }
> {code}
> (i.e. it contains double backslashes).
> When being deployed through the content-package-maven-plugin the same
> attribute is being stored in the JCR with value
> {code}
> {
> "title": "Resolved Segments",
> "icon": "coral-Icon--targeted",
> "storeMapping": {
> "s": "segmentation"
> },
> "template": "<p class=\"contexthub-module-line1\">Resolved Segments</p><p
> class=\"contexthub-module-line2\">{{s.summary}}</p>",
> "clickable": true,
> "listReference": "/store/segmentation/segments",
> "listType": "custom",
> "listItemTemplate": "<span>{{label}}</span>",
> "itemOnClickNoop": true
> }
> {code}
> (i.e. only with single backslashes).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)