[
https://issues.apache.org/jira/browse/SLING-13308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Sedding updated SLING-13308:
-----------------------------------
Description:
Scripts provided via a content-package for the resource-type
{{my-scripts/escaped:test}} are located on the filesystem in a directory called
{{my-scripts/_escaped_test}} or {{my-scripts_escaped_test}} on Windows.
On Windows, when the "Provided-Capability" header is generated, the unescaping
is performed on the Windows path, which does not work. The slashes are
converted from {{\}} to {{/}} only after the unescaping.
The result is that the resource-type for such scripts, indicated in the
"Provided-Capability" header, is {{my-scripts/_escaped_test}} instead of
{{{}my-scripts/escaped:test{}}}.
was:
Scripts provided via a content-package for the resource-type
{{my-scripts/escaped:test}} are located on the filesystem in a directory called
{{my-scripts/_escaped_test}} or {{my-scripts\_escaped_test}} on Windows.
On Windows, when the "Provided-Capability" header is generated, the unescaping
is performed on the Windows path, which does not work. The slashes are
converted from {{\}} to {{/}} only after the unescaping.
The result is that the resource-type for such scripts, indicated in the
"Provided-Capability" header, is {{my-scripts/_escaped_test}} instead of
{{my-scripts/escaped:test}}.
> windows only: incorrect capabilities for escaped resource paths
> ---------------------------------------------------------------
>
> Key: SLING-13308
> URL: https://issues.apache.org/jira/browse/SLING-13308
> Project: Sling
> Issue Type: Bug
> Components: Maven Plugins and Archetypes
> Affects Versions: Scripting Bundle Maven Plugin 0.5.2
> Reporter: Julian Sedding
> Assignee: Julian Sedding
> Priority: Major
> Fix For: Scripting Bundle Maven Plugin 0.5.4
>
>
> Scripts provided via a content-package for the resource-type
> {{my-scripts/escaped:test}} are located on the filesystem in a directory
> called {{my-scripts/_escaped_test}} or {{my-scripts_escaped_test}} on Windows.
> On Windows, when the "Provided-Capability" header is generated, the
> unescaping is performed on the Windows path, which does not work. The slashes
> are converted from {{\}} to {{/}} only after the unescaping.
> The result is that the resource-type for such scripts, indicated in the
> "Provided-Capability" header, is {{my-scripts/_escaped_test}} instead of
> {{{}my-scripts/escaped:test{}}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)