Repository navigation
remove the "Shared" folder - #8026
Conversation
|
@icewind1991 At the moment I just add a mount point for every share. If I understand it correctly than users are not allowed to rename or move mount points. But this is something we want to allow for shared files/folders. Any idea how to solve it? This is probably also a problem you will face with the server-to-server sharing. |
|
How about linking mount points to fileid instead of full path? We'd require the mount point folder to exist (or auto create it). This way the folder can be moved around, renamed. |
There was a problem hiding this comment.
what is the purpose of the answer.txt file?
Magic strings always frighten me 😉
There was a problem hiding this comment.
I just explicitly referred a file for test purpose and forget to remove it again before preparing the pull request.
There was a problem hiding this comment.
I see - thanks for clarification
Nice move - Thanks! |
|
This branch is already in a really usable stage. Maybe some apps needs to be adjusted but everything else should already work. @jancborchardt Can you give it a try to check the visual representation? At the moment I use for shared folders the same icon we use for "Shared/" in ownCloud6. Shared files just show the preview. I think that's OK, or should we have some kind of overlay icon which also indicates that it is a shared file? Next to each shared file/folder we have the text "Shared by userX" the same way it is shown in OC6. So it should be fairly easy to detect the shared files also without a special (overlay) icon. |
There was a problem hiding this comment.
unset() doesn't care if the array index exists or not. In any case it will continue without any warning or error.
|
Went through the code with @schiesbn and overall it looks good. A few more points to test:
|
|
|
This branch is ready for testing! Please try it out, play with it and review the code... Thanks! |
|
Tested basic sharing, moving shared files, deleting shared files and resharing. Code looks good at a glance 👍 |
There was a problem hiding this comment.
That sql has a bad taste - @schiesbn would it be possible to setup a unit test for this? THX
There was a problem hiding this comment.
It is basically to avoid to execute a update query for every share to update the file_target. I will add a unit test for it. BTW, this can probably also lead to problems if we update to many rows... I will break this down into chunks of 99 rows per query, like I did for the other one.
|
running litmus on a shared folder also works - @schiesbn nice job! |
|
@schiesbn looks like I cannot move a file within a shared folder to the outside world - is that an expected behavior? |
|
@DeepDiver1975 @schiesbn it’s definitely not the way it should work. :) Moving files outside of shared folder should be fully possible. Shared folders and files within shared folders should behave like normal folders. |
|
This should be possible if you have delete permissions for the shared folder. Because moving the file out of the shared folder will delete it for the owner. Did you checked the permissions? I will also give it a try later. |
|
@schiesbn nice! Looks good interface-wise, great! :) I also have @DeepDiver1975’s problem though: When I have full edit permissions on a shared folder (and can remove files inside) I can still not move a file outside of the folder. |
|
@DeepDiver1975 I added a unit test for the update routine and also addressed all your other comments. Maybe you want to have another look... |
|
@DeepDiver1975 & @jancborchardt I also fixed the rename problem, you should now be able to move files out of a shared folder if you have the permissions. |
|
Yeah, that works now. Nice! I can’t do a code review though, but interface-wise this gets a 👍 |
|
|
@MorrisJobke The user should always be able to rename a shared file or folder. This will only affect the user who renamed it. That's one of the design decisions regarding the new sharing. People should be able to organize their shares as they wish. Only renaming files within a shared folder should be blocked if the user has neither "update" nor "create"+"delete" permission because this would affect all users including the owner. |
… some tests and the encryption code
|
A new inspection was created. |
|
Tested, code still good 👍 |
|
🚀 Test Passed. 🚀 |
|
@DeepDiver1975 @MorrisJobke @LukasReschke @bantu all your concerns are addressed, can I get a second +1? Thanks! |
|
Question: If a shared file exists, and this is added, that still exists, right? So there should be no migration problems. Is that correct? |
|
@schiesbn I asked @dragotin and @danimo to have a look and do some testing with the desktop client as you have been asking as well. As they are currently busy with 1.6.0 we either wait or merge and perform further testing in master. I'd vote for merge @karlitschek |
|
I had no migration problems when testing. Could switch back and forth between current and this one without any issues. |
|
@DeepDiver1975 I would also prefer to merge it now and do additional sync client tests later on master. @MTRichards Yes. Since with the "new sharing" we no longer have a "Shared" folder we create a real "Shared" folder during upgrade and adjust the share target to point to the Shared folder for existing shares. So for users nothing will change. The share will be at exactly the same place like before after upgrade. But then they can move it out of the Shared folder, organize them as they wish and new shares will go directly to the root folder |
|
👍 from my side. Good work! |
|
I will merge it now, since I have a additional +1 and already discussed and agreed with @karlitschek at the beginning of the week that it would be good to merge it early. |
|
OH MAN HIGH FIVES ALL AROUND! :) ✋ 🎉 |
|
🍸 really happy for that one. |
|
citing @schiesbn
On a core 7.0.0RC1 with a 1.6.1 mirall (on linux) try: Sorry for messing with this old PR but I'm not sure if this is a bug or feature... |
|
@SEEZER can you elaborate ? What's your issue ? What do you mean "User B deletes F in local filesystem" ? I assume that user deleted F in the web UI. |
This is the branch I'm working on to remove the shared folder. It is not yet ready, but I thought it would be a good idea to allow interested people to have a look at the changes as early as possible. Feel free to have a look at the code and share your thoughts, ideas, code or whatever you want.This branch is ready for review.
General stuff:
Check other apps:
Migration Tasks:
Thinks you should know:
Known Issues: