Skip to content

WebDAV permission attribute wrong #10247

Closed

Description

@dragotin

Tested with stable7 on 7540a58 👍

  • directories that were shared by me do not have the "S" tag.
  • files in directories shared by me do not have the "S" tag.
  • directories that are shared with me do have the "S" tag, but also the "M" tag which they IMO should not have.
  • files in directories shared with me also have the "M" tag which they IMO should not have.

@DeepDiver1975 please help - thanks.

Activity

  1. DeepDiver1975 commented on Aug 7, 2014

    @DeepDiver1975
    Contributor

    directories that were shared by me do not have the "S" tag.
    files in directories shared by me do not have the "S" tag.

    We have never though about shared by me.

    I'll have a look regarding the 'M'

  2. added this to the milestone on Aug 7, 2014
  3. self-assigned this
    on Aug 7, 2014
  4. dragotin commented on Aug 7, 2014

    @dragotin
    ContributorAuthor

    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.

  5. DeepDiver1975 commented on Aug 7, 2014

    @DeepDiver1975
    Contributor

    The 'M' can be fixed pretty quick - pr is coming ....

  6. DeepDiver1975 commented on Aug 7, 2014

    @DeepDiver1975
    Contributor

    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

  7. dragotin commented on Aug 7, 2014

    @dragotin
    ContributorAuthor

    Ah ok, that might be the crucial detail. Hmm.

  8. DeepDiver1975 commented on Aug 11, 2014

    @DeepDiver1975
    Contributor

    @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 😉

  9. schiessle commented on Aug 11, 2014

    @schiessle
    Contributor

    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.

  10. dragotin commented on Aug 11, 2014

    @dragotin
    ContributorAuthor

    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.

  11. icewind1991 commented on Aug 11, 2014

    @icewind1991
    Contributor

    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

  12. schiessle commented on Aug 11, 2014

    @schiessle
    Contributor

    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.

  13. DeepDiver1975 commented on Aug 11, 2014

    @DeepDiver1975
    Contributor

    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.

  14. DeepDiver1975 commented on Aug 11, 2014

    @DeepDiver1975
    Contributor

    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.

    share by link is a kind of 'shared-by-me' as well

  15. 11 remaining items

  16. modified the milestones: , backlog on Jan 8, 2015
  17. PVince81 commented on Mar 26, 2015

    @PVince81
    Contributor

    What's the next step ?

  18. PVince81 commented on Aug 3, 2015

    @PVince81
    Contributor

    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 ?

  19. guruz commented on Aug 3, 2015

    @guruz
    Contributor

    @PVince81 I think it's about shared TO me vs shared BY me..

  20. DeepDiver1975 commented on Mar 10, 2016

    @DeepDiver1975
    Contributor

    @dragotin @guruz is this still of an issue? Please reopen if so - THX

  21. lock commented on Aug 5, 2019

    @lock

    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.

  22. locked as resolved and limited conversation to collaborators on Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions