Folder rule copy- do not copy the correct folder structure.

Description

Folder rule copy- do not copy the correct folder structure.

Steps to reproduce:

1. Create two sites. Site1 with testfolder1 and site2 with testfolder2.

2. Add a rule on Site1 -> testfolder1: Copy all items from testfolder1 to testfolder2. (refer attachment - rule_screenshot.png)

3. Copy Some folders/files from a local folder with tree structure like shown in attachment. (refer attachment - windows_machine_folders_tree_structure.png)

4. When uploading this structure to testfolder1 folder structure in this folder appears as the same structure of the local folder. But in testfolder2 folder tree structure is incorrect.

Expected Behaviour:
When folder structure is copied from testfolder1 to testfolder2 using rule, it should be same as the original folder structure.

Observed Behaviour:
When folder structure is copied from testfolder1 to testfolder2 using rule, the wrong folder structure is created in testfolder2.

Please refer attached document for screenshots.

Environment

None

Testcase ID

None

Activity

Show:
Shilpa Tupe
January 20, 2021, 11:54 AM

Thank you! I have advised the customer. I will let you know if there are any further questions.

Adina Parpalita
January 14, 2021, 11:02 AM

and I investigated this issue and here are some thoughts:

  1. Expected Behaviour of this issue is incorrect. The way the rule is defined, it will work like this:

    1. “When -> Items are updated → Copy items to testfolder2” => this means that when an item is updated on testfolder1, that file will be copied to testfolder2

    2. “When -> Items are deleted or leave this folder → Copy items to testfolder2” => this means that when a file is deleted from testfolder1, that file will be copied! to testfolder2. Basically the file will in fact be moved from testfolder1 to testfolder2

  2. the behaviour that they want (mirroring a folder structure to another location) cannot be achieved by using the rules system like this. The options that they might try would be:

    1. create a link to testfolder1 inside site2 (following https://docs.alfresco.com/6.2/tasks/library-item-create-link.html )

    2. creating a custom script that actually does what they want, and then create a rule as they have and instead of “Copy items to …” set “Execute script …”

    3. if the reason behind this is permissions / visibility related, they might be able to achieve what they need by setting specific permissions to specific users ONLY to testfolder1, without inheriting parent permissions, just a thought…

Won't Fix

Assignee

Shilpa Tupe

Reporter

Shilpa Tupe

Labels

None

Escalated By

None

Security Issue

None

ACT Numbers

01018731

Premier Customer

None

Code Branch

None

Build Location

None

Regression Since

None

Work Funnel End

None

Patch Attached

None

Dependent Version/s

None

Cloud or Enterprise

None

Prioritization Score

None

Delivery Team

Customer Excellence

Bug Priority

Category 1

Fix versions

Affects versions