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

Hard delete of package doesn't delete package owner requests #4807

Closed
chenriksson opened this issue Oct 5, 2017 · 4 comments
Closed

Hard delete of package doesn't delete package owner requests #4807

chenriksson opened this issue Oct 5, 2017 · 4 comments

Comments

@chenriksson
Copy link
Member

Repo:

  • Create package
  • Add new owner to the package
  • Hard delete the package through the Admin panel
  • Go to Account->Manage Packages

You'll see 500 server error due to NullReferenceException in OwnerRequestsListItemViewModel. The cause is that the PackageOwnerRequest still exists in the DB, but the PackageRegistration was deleted.

@chenriksson
Copy link
Member Author

It looks like hard deletes also don't delete from the PackageRegistrationOwners table, but this doesn't block any UI or cause exceptions.

@scottbommarito
Copy link
Contributor

Hard deletes should delete from the PackageRegistrationOwners table according to this

https://github.com/NuGet/NuGetGallery/blob/master/src/NuGetGallery/Services/PackageDeleteService.cs#L25

@scottbommarito
Copy link
Contributor

I checked locally and it does in fact delete from the PackageRegistrationOwners table--I think if it didn't, the commit would fail.

@chenriksson
Copy link
Member Author

Closing - should be fixed with #4898

@chenriksson chenriksson removed their assignment Oct 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants