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

Account for -1 of orphans when deleting permission #1345

Merged
merged 3 commits into from
Nov 5, 2020

Conversation

mattmundell
Copy link
Contributor

What:

Check also for a -1 resource when deleting a permission.

Why:

Without the check the caching code tries to do SQL on an id that is out of range.

How:

Create task.
Add permission to task, note UUID.
Delete task.
Empty trash.
Delete permission using UUID. Should succeed.

Checklist:

@mattmundell mattmundell marked this pull request as ready for review November 4, 2020 13:22
@timopollmeier timopollmeier merged commit efc4c55 into gvmd-20.08 Nov 5, 2020
@timopollmeier timopollmeier deleted the del-perm-orph branch October 15, 2021 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants