Skip to content

Conversation

danxuliu
Copy link
Member

Follow up to #22761

This pull request adds a test for a scenario fixed in #22116 (transferring ownership of a path caused shares with the target user to be removed). Unfortunately I have not been able to reproduce the other issues in d0a7f83^, so I did not add tests for them 🤷

Nevertheless I added other tests that were missing and I thought that it was good to have ;-)

The backports to stable18 and stable19 will be pushed to #22802 and #22804.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
The files:transfer-ownership performs a sanitization of users with
"risky" display names (including characters like "\" or "/").

In order to allow (escaped) double quotes in the display name the
regular expression used in the "user XXX with displayname YYY exists"
step had to be adjusted.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Until recently (it was fixed in ac2999a) when a path was transferred
other shares with the target user were removed, so a test was added to
ensure that it does not happen again.

Besides that a test to ensure that other files with the target user are
not transferred was added too (it did not fail before, but seemed
convenient to have that covered too :-) ).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu added the 3. to review Waiting for reviews label Sep 18, 2020
@danxuliu danxuliu added this to the Nextcloud 21 milestone Sep 18, 2020
@danxuliu
Copy link
Member Author

/backport to stable20

@faily-bot
Copy link

faily-bot bot commented Sep 18, 2020

🤖 beep boop beep 🤖

Here are the logs for the failed build:

Status of 33223: failure

mysql8.0-php7.4

@rullzer
Copy link
Member

rullzer commented Sep 24, 2020

Lets do this for now

@rullzer
Copy link
Member

rullzer commented Sep 24, 2020

/backport to stable20

@rullzer rullzer merged commit acba3da into master Sep 24, 2020
@rullzer rullzer deleted the add-more-integration-tests-for-files-transfer-ownership-command branch September 24, 2020 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants