-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebDAV permission attribute wrong #10247
Comments
We have never though about shared by me. I'll have a look regarding the 'M' |
Oh, we discussed that one flag is enough for shared with and by which I still think is not sufficient, but that was the decision back than. Argument: In the web interface you also do have the same icons for both cases. Now with overlays, we only have icons for the shared with me which differes from the WI. |
The 'M' can be fixed pretty quick - pr is coming .... |
regarding the 'S' - maybe I remember the discussion wrong - but querying for the 'shared by me' information is expensive - we don't want to do this on every dav request |
Ah ok, that might be the crucial detail. Hmm. |
@schiesbn I need your expertise on the "shared by me" information. As explained above I'm a bit worried about the performance impact if we call some sharing function on each and every folder we return via webdav. We might want to add some sql join trick to get the shared information into the FileInfo class? Just an idea ..... @icewind1991 for filesystem/cache and stuff 😉 |
shares with and shared by are both one \OC\Share::getItem() call. I don't know how it is implemented for the webdav call but both calls should have the same performance impact. Generally: We could also think about separate this two operations. All the share information could also be fetched with OCS api call, that's also the way the mobile clients handle it. This way the client can decide when to update which information and we would no longer need to fetch all the information for every webdav call. |
just as a sidenote, we saw today that stuff that is shared via link do not have the "S" in the permissions tag as well, which seems also buggy. @lmaestro will do a bug report about that. But maybe its related to this. |
Whether or not a file is shared with me can be determined quickly by looking at the storage, shared by me requires additional db queries |
Yes, but it is only there because we did the getItems() call before to set up the mount points. So the general statements stays true. For both information wen need exactly one getItems() call for each request. getItems() does exactly one DB query, at the moment I don't see how this could be optimized. |
well - the call of getItems() to setup the mount points is done anyways - if i want to get the 'shared-by-me' information it would be an additional call and it would be an additional call for EACH file and folder - right? As stated above: from my understanding we should be in the position to join up t tables and get al information with the query on the file cache level. |
share by link is a kind of 'shared-by-me' as well |
no, it would be one call to get a list of all files shared by you.
fwiw, getItems() already does a join over the file cache table |
they would be also included by the one getItems() call. So we are really talking about one additional function call and one additional db query to get all the information. |
okay - the approach would then be to call it once and cache the data in RAM and set the dav property accordingly. How does this perform in an environment with a hell of shared files? |
@dragotin we need to define a second property for shared-by-me - right? |
@DeepDiver1975 IIRC we did not want to have the information in a special attrib but also have the "S" set as well. Not sure if thats good tough. |
The most important icon to get in here is the files or folders are shared WITH you. This is because the Shared folder disappeared, and there needs to be a replacement. Shared by me is a nice to have attribute. Stability and robustness of Shared WITH you is far more important right now than Shared by you. The second property to be able to offer up a feature set exactly the same as on the server web UI is secondary (or however it is determined to best implement this) - this can be done later. |
What's the next step ? |
Is this still an issue ? I've seen Webdav permission attributes set before, also the mobile and desktop clients are using them. Does it mean this is fixed or are there any outstanding issues ? |
@PVince81 I think it's about shared TO me vs shared BY me.. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Tested with stable7 on 7540a58 👍
@DeepDiver1975 please help - thanks.
The text was updated successfully, but these errors were encountered: