Skip to content
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

transfer ownership of shared files deletes the share #152

Closed
individual-it opened this issue Nov 13, 2018 · 2 comments · Fixed by owncloud/core#33495
Closed

transfer ownership of shared files deletes the share #152

individual-it opened this issue Nov 13, 2018 · 2 comments · Fixed by owncloud/core#33495
Assignees
Labels

Comments

@individual-it
Copy link
Member

core tests that transfer ownership of a shared file fail. e.g:

  Scenario: transferring ownership of file shares
    Given user "user0" has been created
    And user "user1" has been created
    And user "user2" has been created
    And user "user0" has uploaded file "data/textfile.txt" to "/somefile.txt"
    And user "user0" has shared file "/somefile.txt" with user "user2" with permissions 19
    When the administrator transfers ownership from "user0" to "user1" using the occ command
    Then the command should have been successful
    And the downloaded content when downloading file "/somefile.txt" for user "user2" with range "bytes=0-6" should be "This is"

doing this manually on S3 does give:

Analysing files of user0 ...
    2 [============================]
Collecting all share information for files and folder of user0 ...
    1 [============================]
Transferring files to user1/files/transferred from user0 on 20181113_080521 ...
Restoring shares ...
Share with id 51 points at deleted file, skipping
 1/1 [============================] 100%

git bisec points to this commit owncloud/core@0c87fb5

@ownclouders
Copy link
Contributor

GitMate.io thinks the contributors most likely able to help are @ownclouders, and @davitol.

Possibly related issues are #89 (Lost share when transferring files to recipient), and #53 (Restoring a previous version of a shared file fails).

@individual-it
Copy link
Member Author

other tests that fail after the same commit:

    /drone/server/tests/acceptance/features/apiMain/transfer-ownership.feature:41
    /drone/server/tests/acceptance/features/apiMain/transfer-ownership.feature:52
    /drone/server/tests/acceptance/features/apiMain/transfer-ownership.feature:77
    /drone/server/tests/acceptance/features/apiMain/transfer-ownership.feature:170
    /drone/server/tests/acceptance/features/apiMain/transfer-ownership.feature:182
    /drone/server/tests/acceptance/features/apiMain/transfer-ownership.feature:196
    /drone/server/tests/acceptance/features/apiMain/transfer-ownership.feature:221
    /drone/server/tests/acceptance/features/apiFavorites/favorites.feature:102
    /drone/server/tests/acceptance/features/apiFavorites/favorites.feature:103
    /drone/server/tests/acceptance/features/apiShareManagement/updateShare.feature:277
    /drone/server/tests/acceptance/features/apiShareOperations/downloadFromShare.feature:18
    /drone/server/tests/acceptance/features/apiWebdavProperties/moveFile.feature:162
    /drone/server/tests/acceptance/features/apiWebdavProperties/moveFile.feature:163

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants