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/12/16 07:53:00 UTC

[jira] [Resolved] (SLING-11001) Target node path calculation broken in case the (source) path points to a file

     [ https://issues.apache.org/jira/browse/SLING-11001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konrad Windszus resolved SLING-11001.
-------------------------------------
    Resolution: Fixed

Fixed in https://github.com/apache/sling-org-apache-sling-jcr-contentloader/commit/a34481e7b9cc55b4b680c0eed4d5ff7629d37b1b.

> Target node path calculation broken in case the (source) path points to a file
> ------------------------------------------------------------------------------
>
>                 Key: SLING-11001
>                 URL: https://issues.apache.org/jira/browse/SLING-11001
>             Project: Sling
>          Issue Type: Bug
>    Affects Versions: JCR ContentLoader 2.4.2
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>            Priority: Major
>             Fix For: JCR ContentLoader 2.5.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> In the context of SLING-10987 it turned out that a Sling-Initial-Content header with the following value
> {code}
> SLING-INF/content/htl/repl.json;overwrite:=true;path:=/content/htl,
> {code}
> deserializes the content of repl.json below node {{/content/htl/repl/repl}} instead of {{/content/htl/repl}}.
> The repl.json looks like this in that case
> {code}
> {
>     "jcr:primaryType" : "nt:unstructured",
>     "sling:resourceType":"repl/components/repl",
>     "jcr:title": "HTL REPL"
> }
> {code}
> Altought the documentation at https://sling.apache.org/documentation/bundles/content-loading-jcr-contentloader.html#initial-content-loading doesn't mention files as entry paths this behaviour seems counterintuitive and also together with directive {{overwrite}} prevents the update of just a single node.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)