You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2018/02/15 12:53:00 UTC

[jira] [Commented] (JCRVLT-251) Child nodes mentioned in parent node's docview xml are not cleared correctly during installation

    [ https://issues.apache.org/jira/browse/JCRVLT-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16365484#comment-16365484 ] 

Konrad Windszus commented on JCRVLT-251:
----------------------------------------

[~tripod] IMHO the description for "empty elements" in https://github.com/apache/jackrabbit-filevault/commit/fed689102dbb2fb50eeb60ef946331bdbd03c303 is not clear enough. It doesn't explicitly state that empty nodes are left untouched during the import (independent of the merge mode). That is crucial to know in this context.

> Child nodes mentioned in parent node's docview xml are not cleared correctly during installation
> ------------------------------------------------------------------------------------------------
>
>                 Key: JCRVLT-251
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-251
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 3.1.42
>            Reporter: Konrad Windszus
>            Priority: Major
>             Fix For: 3.1.44
>
>
> If a repository contains the following structure
> {code}
> + testroot [nt:unstructured]
>   + testchild [nt:unstructured]
>      - property: value (String)
> {code}
> And a package is being installed there containing a {{.content.xml}} file below folder {{/testroot}} with the following content only
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal"
>     jcr:primaryType="nt:unstructured">
>     <testchild/>
> </jcr:root>
> {code}
> and a {{filter.xml}} like this
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <workspaceFilter version="1.0">
>     <filter root="/testroot" mode="replace"/>
> </workspaceFilter>
> {code}
> and apart from that no further files/folders, the repository child node at {{/testroot/testchild}} is not correctly cleared, i.e. the property with name "property" and value "value" is still there after installation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)