core icon indicating copy to clipboard operation
core copied to clipboard

v4.5.0: unsharing directories does not make them disappear

Open msrex opened this issue 14 years ago • 15 comments

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:

  1. set up an instance with 2 users and some files and directories in there. nothing fancy.
  2. log in as user2 (webfrontend)
  3. share a few files and directories from user2 to user1.
  4. log in as user1 (webfrontend)
  5. 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.

msrex avatar Oct 23 '12 19:10 msrex

I can't reproduce this. Does the sharing dropdown no longer list the folder as being shared with that user?

MTGap avatar Oct 23 '12 20:10 MTGap

no, if user2 checks this, it does not. yet it still shows up for user1 in the shares-folder. but only the directory entry.

msrex avatar Oct 23 '12 20:10 msrex

I think I misinterpreted you the first time, but I can't reproduce this either. User 1 is unsharing the folder from himself correct?

MTGap avatar Oct 23 '12 21:10 MTGap

that is correct - user1 unshares from himself by clicking on the X at the right end of the row.

msrex avatar Oct 23 '12 21:10 msrex

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?

MTGap avatar Oct 23 '12 21:10 MTGap

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.

msrex avatar Oct 23 '12 21:10 msrex

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.

MTGap avatar Oct 23 '12 21:10 MTGap

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?

msrex avatar Oct 23 '12 21:10 msrex

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.

MTGap avatar Oct 23 '12 21:10 MTGap

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 avatar Oct 23 '12 22:10 msrex

@msrex can you please restest this with 4.5.2? There have been a lot of fixes in this area. THX

DeepDiver1975 avatar Nov 19 '12 11:11 DeepDiver1975

Just verified with v4.5.4 - behaviour is still there. Please try exactly the reproduction steps and you'll see what is wrong.

msrex avatar Dec 11 '12 00:12 msrex

Same for me using v4.5.6

webwurst avatar Jan 30 '13 12:01 webwurst

@icewind1991 Can you have a look?

karlitschek avatar Feb 09 '13 09:02 karlitschek

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!

jancborchardt avatar Aug 05 '13 12:08 jancborchardt