visibilityPermissions permission on folder not preserved if changes are made to grandchildren folders



  • When you have a top level folder that has children and grandchildren folders. The visibilityPermissions get removed on the top folder when you do something to on of their grandchild folders.

    Repo.

    1. Create this structure
      0_1726490570156_upload-fb710f78-154f-4999-a3ba-17cf5cf9fb21
    2. Assign permisssions
      You give app1_user read permission to app1 folder, app2_user read permission to app2 and app3_user to app3.
    3. Verify Applications folder definition
      If you look at the definition of Applications you will see something like this were all three users are listed in the visibilityPermissions permissions.
      0_1726490678838_upload-31150602-a990-4588-9fee-65c05cb4d7a6
    4. Add a folder to one of the grand childs
      0_1726490824419_upload-c19ff8ff-106f-456e-a4f5-c91656e72ca3
    5. Verify Applications folder definition
      0_1726490858274_upload-cee24bcb-3d35-4e18-b892-7e6a37e9ea57
      Now you only see 1 of the users in the visibilityPermissions.

    Now if you would log into the studio or call the api as app2_user or app3_user you will receive an error.

    It seem that when adding the folder or any item the entire folder structure is being recreated. When this happens it only traverses the current path for permission and does not look at sibling path to preserve.

    Lastly, Remove the folder you added and verify applications visibilityPermissions. There are none.
    0_1726496313887_upload-612850ab-9868-4475-8543-f9180ad298de



  • Thanks. I confirm this and will look into it.


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.