Skip to content

Conversation

@sharidas
Copy link
Contributor

@sharidas sharidas commented Oct 9, 2020

Fix #23280

Stop the transfer of ownership between same user.

Signed-off-by: Sujith Haridasan [email protected]

@sharidas sharidas self-assigned this Oct 9, 2020
@sharidas sharidas linked an issue Oct 9, 2020 that may be closed by this pull request
@sharidas
Copy link
Contributor Author

sharidas commented Oct 9, 2020

Summary

Transferring ownership between same users look risky.

Description

Imho, transferring files/folders of same user looks little risky, hence made this change set. Hope this looks ok.

How was it tested?

  1. Create user admin
  2. Execute
➜  nextcloud2 git:(master) ✗ ./occ files:transfer-ownership admin admin
PHP Warning:  Module 'pdo_mysql' already loaded in Unknown on line 0
Kindly check the source and destination users, as they are same.
➜  nextcloud2 git:(master) ✗

@kesselb kesselb added 3. to review Waiting for reviews bug labels Oct 9, 2020
Stop the transfer of ownership between same user.

Signed-off-by: Sujith Haridasan <[email protected]>
@ChristophWurst ChristophWurst added the 4. to release Ready to be released and/or waiting for tests to finish label Oct 12, 2020
@MorrisJobke MorrisJobke removed the 3. to review Waiting for reviews label Oct 12, 2020
@MorrisJobke
Copy link
Member

Ci failure is fixed in #23391

@MorrisJobke MorrisJobke merged commit deb499d into nextcloud:master Oct 12, 2020
@MorrisJobke
Copy link
Member

/backport to stable20

@MorrisJobke
Copy link
Member

/backport to stable19

@MorrisJobke
Copy link
Member

/backport to stable18

@backportbot-nextcloud
Copy link

The backport to stable19 failed. Please do this backport manually.

@backportbot-nextcloud
Copy link

The backport to stable18 failed. Please do this backport manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug feature: files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Transfer files from<->to same user results in data loss

7 participants