Deleted shared files, appear in the trashbin of the group owners in OwnCloud.
Each group g has a functional account named f_g which is the admin for that group. No real user is supposed to log in with the functional account. Instead the functional account shares a folder with a special user called the owner. The purpose for this app is to expose the trashbin of the functional account to the owner user so that there is one extra trashbin icon per group that the current user is an owner of. The owner user can then see the trash files and restore or permanently remove them.
Note that this guide is tested only in the Gitpod.io environment
- Clone the PonderSource dev-stock repository or open it as a new Gitpod project
- Call
./init/surf-trashbin.sh
in the terminal - Call
./tests/surf-trashbin.sh
in the terminal. Note that this script is derived from the testing setup code provided by SURF here. - Open the firefox container instance in your browser under the port 5800. Inside the browser:
- Navigate to
https://oc1.docker/
- Login using credentials
jennifer
as both the username and the password. Trashbin icons with titlesbiochemistry
andbioinformatics
should be visible in the left navigation bar above the main trashbin icon. - Navigate to the
biochemistry
trashbin and verify that it is indeed empty - Go back to
All files
and open thef_biochemsitry_shared
folder and create a new file there. Theupload
option after clicking + is the easiest way to do so. - Delete the file you just created
- Now open the
biochemistry
trashbin again and verify that the file you just deleted shows up in the list - You can try restoring or permanently deleting the file from the trashbin
Notice that the deleted file also independently appears in the main trashbin of the current user. That is because the current user is also the one who created the file. What shows up under the biochemistry
trashbin is actually the trashbin of the functional account that originally shared the folder. So both the owner user and the user who created the file are able to restore it and the repeated appearance in the trashbin folders is not a bug but the intended behavior.