And as "user0" the file "/somefile.txt" does not exist
And using received transfer folder of "user1" as dav path
And as "user1" the file "/somefile.txt" exists
+ And As an "user1"
+ And Getting info of last share
+ And the OCS status code should be "100"
+ And Share fields of last share match with
+ | uid_owner | user1 |
+ | uid_file_owner | user1 |
+ | share_with | user2 |
Scenario: transferring ownership of folder shared with third user
Given user "user0" exists
And as "user0" the folder "/test" does not exist
And using received transfer folder of "user1" as dav path
And as "user1" the folder "/test" exists
+ And As an "user1"
+ And Getting info of last share
+ And the OCS status code should be "100"
+ And Share fields of last share match with
+ | uid_owner | user1 |
+ | uid_file_owner | user1 |
+ | share_with | user2 |
Scenario: transferring ownership of folder shared with transfer recipient
Given user "user0" exists
And as "user0" the folder "/test" does not exist
And using received transfer folder of "user1" as dav path
And as "user1" the folder "/test" exists
+ And Getting info of last share
+ And the OCS status code should be "404"
Scenario: transferring ownership of folder doubly shared with third user
Given group "group1" exists
And as "user0" the folder "/test" does not exist
And using received transfer folder of "user1" as dav path
And as "user1" the folder "/test" exists
+ And As an "user1"
+ And Getting info of last share
+ And the OCS status code should be "100"
+ And Share fields of last share match with
+ | uid_owner | user1 |
+ | uid_file_owner | user1 |
+ | share_with | user2 |
Scenario: transferring ownership of file shares to user with the same id as the group
Given user "user0" exists
And as "user0" the file "/somefile.txt" does not exist
And using received transfer folder of "user1" as dav path
And as "test" the file "/somefile.txt" exists
+ And As an "test"
+ And Getting info of last share
+ And the OCS status code should be "100"
+ And Share fields of last share match with
+ | uid_owner | test |
+ | uid_file_owner | test |
+ | share_with | test |
Scenario: transferring ownership does not transfer received shares
Given user "user0" exists
Then as "user1" the folder "/test" does not exist
And using old dav path
And as "user0" the folder "/test" exists
+ And As an "user2"
+ And Getting info of last share
+ And the OCS status code should be "100"
+ And Share fields of last share match with
+ | uid_owner | user2 |
+ | uid_file_owner | user2 |
+ | share_with | user0 |
@local_storage
Scenario: transferring ownership does not transfer external storage
And as "user0" the folder "/test" does not exist
And using received transfer folder of "user1" as dav path
And as "user1" the folder "/test" exists
+ And As an "user1"
+ And Getting info of last share
+ And the OCS status code should be "100"
+ And Share fields of last share match with
+ | uid_owner | user1 |
+ | uid_file_owner | user1 |
+ | share_with | user2 |
Scenario: transferring ownership of folder shared with third user
Given user "user0" exists
And as "user0" the folder "/test" does not exist
And using received transfer folder of "user1" as dav path
And as "user1" the folder "/test" exists
+ And As an "user1"
+ And Getting info of last share
+ And the OCS status code should be "100"
+ And Share fields of last share match with
+ | uid_owner | user1 |
+ | uid_file_owner | user1 |
+ | share_with | user2 |
Scenario: transferring ownership of folder shared with transfer recipient
Given user "user0" exists
And as "user0" the folder "/test" does not exist
And using received transfer folder of "user1" as dav path
And as "user1" the folder "/test" exists
+ And Getting info of last share
+ And the OCS status code should be "404"
Scenario: transferring ownership of folder doubly shared with third user
Given group "group1" exists
And as "user0" the folder "/test" does not exist
And using received transfer folder of "user1" as dav path
And as "user1" the folder "/test" exists
+ And As an "user1"
+ And Getting info of last share
+ And the OCS status code should be "100"
+ And Share fields of last share match with
+ | uid_owner | user1 |
+ | uid_file_owner | user1 |
+ | share_with | user2 |
Scenario: transferring ownership does not transfer received shares
Given user "user0" exists
And as "user1" the folder "/sub/test" does not exist
And using old dav path
And as "user0" the folder "/sub" does not exist
+ And Getting info of last share
+ And the OCS status code should be "404"
Scenario: transferring ownership does not transfer external storage
Given user "user0" exists