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

Skip broken shares when transferring ownership #26527

Merged
merged 1 commit into from
Nov 7, 2016

Conversation

PVince81
Copy link
Contributor

@PVince81 PVince81 commented Nov 2, 2016

Description

Related Issue

Fixes #26524
Fixes #26525

Motivation and Context

Because aborting isn't useful as it would prevent legitimate subsequent shares to be migrated.

How Has This Been Tested?

See steps from the tickets

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Backports

  • stable9.1
  • stable9

@DeepDiver1975

@PVince81 PVince81 added this to the 9.2 milestone Nov 2, 2016
@mention-bot
Copy link

@PVince81, thanks for your PR! By analyzing the history of the files in this pull request, we identified @DeepDiver1975, @nickvergessen and @LukasReschke to be potential reviewers.

@PVince81
Copy link
Contributor Author

PVince81 commented Nov 4, 2016

Integration tests will be added as part of #26543

@PVince81
Copy link
Contributor Author

PVince81 commented Nov 7, 2016

@DeepDiver1975 @jvillafanez please review

@DeepDiver1975
Copy link
Member

👍

@DeepDiver1975 DeepDiver1975 merged commit 9d634fa into master Nov 7, 2016
@DeepDiver1975 DeepDiver1975 deleted the transfer-ownership-exceptions branch November 7, 2016 19:20
if ($shareMountPoint) {
$this->mountManager->removeMount($shareMountPoint->getMountPoint());
}
$this->shareManager->deleteShare($share);
Copy link
Member

Choose a reason for hiding this comment

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

deleteShare throws ShareNotFound according to PHPDoc .... but I don't see this being throws in the implementation :puke:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

:sad:

@PVince81
Copy link
Contributor Author

PVince81 commented Nov 7, 2016

stable9: #26575
stable9.1: #26575

@lock
Copy link

lock bot commented Aug 4, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transfer ownership don't fail on shares pointing to trashed files Transfer ownership don't bail out on error
3 participants