Skip to content

Resharing files doesn't work #2160

Closed
Closed

Description

@schiessle

Tried with ownCloud master and the shared-folder-etags branch.

This is the scenario:

  • we have three users: user1, user2 and user3
  • user3 shares the file "foo.txt" to user2
  • user2 reshares the file to user1
  • login as user1
  • user 1 sees the file in his Shared-folder but if he tries to download it he gets a "cloud not found" error

What I found out so far:

OCP\Share\getItemsSharedWith returns as path 'files/foo.txt' and user2 as owner while user3 is the real owner.

I'm not sure what's the correct result. Should the function resolve it completely in one run? Than path 'files/foo.txt' and owner 'user3' would be the correct result. Another option would be to return user2 as owner and as path 'Shared/foo.txt', than we could do another iteration until we have a path which no longer starts with Shared/.

Since the getItems() function is quite complex and changes not only affect file sharing but also contact and calendar sharing I would appreciate if @MTGap could have a look at it.

Activity

  1. ghost assigned on Mar 7, 2013
  2. MTGap commented on Mar 7, 2013

    @MTGap
    Contributor

    It should still return user2 as the share owner. I'll fix the shared storage getOwner method to reflect the actual file owner. Then everything should work for files_versions/trashbin.

    I thought I already fixed this a long time ago...

  3. locked as resolved and limited conversation to collaborators on Aug 23, 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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions