irods-contrib / metalnx-web

Metalnx Web Application
https://metalnx.github.io/
BSD 3-Clause "New" or "Revised" License
36 stars 36 forks source link

Granted access rights by being a member of a group does not work as expected #252

Open mstfdkmn opened 3 years ago

mstfdkmn commented 3 years ago

If you are granted by an access right by being a member of a group then some issues with ACL start. But if you are given access (own/write/read) as normal user then all permissions are working as normal on Metalnx. For example, you cannot see a file content by using preview tab if you are given read/write/own access only by a group. Or you cannot delete a data object if you are only given access (write/own) as a group. Since the first level "Action" drop-down menu is disabled, we cannot select any operations like "Delete", "Copy" etc. By the way the second level (view/Action/Delete) Action drop-down menu works. However all these are working normal (as expected) through iCommands.

To be able to reproduce:

Please see relevant screen shots bellows to the steps.

Step 1: Check the uploaded file permission image

Step 2: Check the group to see your name image

Step 3: Add the group to the data object's permission image

Step 4: Remove your user name from the permissions tab of the data object image

Step 5: Check the permissions of the data object to see your group has the "own" permission but it is not enabled like you had by user permission image

Step 6: Check the review tab of the data object to see you are not authorized anymore image

Step 7: Check "Action" drop-down menu together with the data object to see it is disabled anymore image

So we cannot manage permissions by groups via Metalnx. Could you please check this whether you can see the same behaviors? Or we are missing something here?

Thanks.

Tested both in 4.2.8 - 2.4.0 and in 4.2.9 - 2.4.0. And ICAT is MySQL.