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 2021/11/09 07:44:00 UTC

[jira] [Comment Edited] (JCRVLT-569) Import mode "MERGE" and "MERGE_PROPERTIES" still remove properties during import

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

Konrad Windszus edited comment on JCRVLT-569 at 11/9/21, 7:43 AM:
------------------------------------------------------------------

That is an edge case where the filter root node is not contained (in any serialisation format) in the package. In that case it is deleted irrespective of its import mode. That is a bug and should indeed be fixed. The workaround is simple though: Never add filter roots with merge import modes on levels which don't exist in the package.


was (Author: kwin):
That is an edge case where the filter root node does not contain any serialisation in the package. In that case it is deleted irrespective of its import mode. That is a bug and should indeed be fixed. The workaround is simple though: Never add filter roots with merge import modes on levels which don't exist in the package.

> Import mode "MERGE" and "MERGE_PROPERTIES" still remove properties during import
> --------------------------------------------------------------------------------
>
>                 Key: JCRVLT-569
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-569
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: vlt
>    Affects Versions: 3.5.4
>            Reporter: Ankita Agarwal
>            Priority: Major
>         Attachments: test1.zip, test2-merge-properties-1.0-SNAPSHOT.zip
>
>
> Although it is clearly stated in "https://jackrabbit.apache.org/filevault/importmode.html" that no content should be deleted for "MERGE", this still happens.
> I have tried with "MERGE_PROPERTIES" mode as well.
>  # First, install test1.zip.
>  # It will create nodes under -> /content/dam/de
>  # then install  test2-merge-properties-1.0-SNAPSHOT
>  # It will delete all the nodes under  /content/dam/de
>            Filter used:
>            <filter root="/content/dam/de" mode="merge_properties" />
>  
> [~kwin] / [~tripod] Please check if you can help with this.
> h4.



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