Skip to content

Catch file transfer error and stop transfer ownership command - #17913

Merged
rullzer merged 1 commit into
masterfrom
fix/transfer-ownership-move-files-error-handling
Dec 4, 2019
Merged

Catch file transfer error and stop transfer ownership command#17913
rullzer merged 1 commit into
masterfrom
fix/transfer-ownership-move-files-error-handling

Conversation

@ChristophWurst

Copy link
Copy Markdown
Member

Ref #15664

This does not check quota as I do not have a clue how to do this. But it checks the returned value of the move operation. Better than nothing.

if ($this->transfer($output) === false) {
$output->writeln('<error>Could not transfer files</error>');
// Abort
return 1;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the real error logged?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't find out. Some exceptions are thrown, some are caught.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a storage export like @icewind1991 or @rullzer can tell?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess here it is not possible...

@rullzer

Copy link
Copy Markdown
Member

I guess this needs a rebase then 😉

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst
ChristophWurstforce-pushed the fix/transfer-ownership-move-files-error-handling branch from b3cd39a to 70f4e7eCompareNovember 27, 2019 08:21
@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

I guess this needs a rebase then wink

Done. So much cleaner now :)

@rullzer

Copy link
Copy Markdown
Member

Review time!

@rullzer
rullzer merged commit 50985e5 into masterDec 4, 2019
@rullzer
rullzer deleted the fix/transfer-ownership-move-files-error-handling branch December 4, 2019 12:53
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@ChristophWurst@rullzer@nickvergessen