v4.5.0: unsharing directories does not make them disappear
first, unsharing files (by clicking on the X at the right) works fine and as expected.
When you unshare a directory, it does not disappear. instead you keep seeing the 'Shared"-folder plus the "unshared" folders in there. when you then click on a directory (previously unshared) you are dropped into the owncloud root folder. And you can start over.
Reproduction:
- set up an instance with 2 users and some files and directories in there. nothing fancy.
- log in as user2 (webfrontend)
- share a few files and directories from user2 to user1.
- log in as user1 (webfrontend)
- in the shared folder unshare a few files and directories (click the X on the right) -> the files and the directories are unshared and disappear as they should. but when you go back into the shared folder, the directories are zombies.
I can't reproduce this. Does the sharing dropdown no longer list the folder as being shared with that user?
no, if user2 checks this, it does not. yet it still shows up for user1 in the shares-folder. but only the directory entry.
I think I misinterpreted you the first time, but I can't reproduce this either. User 1 is unsharing the folder from himself correct?
that is correct - user1 unshares from himself by clicking on the X at the right end of the row.
Is the Javascript console giving you any errors or errors in the webserver error log? Do you see the 'unshared foldername undo' notification at the top?
It happens after the unshared. At first it is unshared normally, and disappears (with the yellow notification). Then I go back to the ownCloud root path. The 'Shared' folder is still there, although it should be empty (I unshared everything). Then when I change into the 'Shared' folder, I see the previously unshared directories, that I cannot change into. I updated the description above for clarity.
Is this a new install? I'm a little confused why this would happen unless the files were in the file cache from an older install.
This is a new install and new files. I am pretty certain. On the other hand I tested so many different configurations the last 2 days, let me retest and get back to you.
Is the cache cleared when you unshare a file?
The folders shouldn't be in the filecache at any time, they are stored elsewhere. So, they should never reappear once deleted. I just suspected it because I can't reproduce and there might have been an error during an update.
It definitively was a clean installation as we downloaded and ran off our v4.5.0 appliance. We might have tried to reproduce a few other bugs before, but always started over after we hit a bug. If a bug was not present before we continued to the next bug.
So no upgrade issue.
@msrex can you please restest this with 4.5.2? There have been a lot of fixes in this area. THX
Just verified with v4.5.4 - behaviour is still there. Please try exactly the reproduction steps and you'll see what is wrong.
Same for me using v4.5.6
@icewind1991 Can you have a look?
I’m closing this bug because it has been inactive for a few months. This probably means it’s not reproducible or it has been fixed.
Please reopen if the error still persists with ownCloud 5.0.9 (the latest stable version) and then please use the issue template.
Thank you!