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

Deleting a doc doesn't delete the doc_permission records for it #4278

Closed
at055612 opened this issue May 17, 2024 · 1 comment
Closed

Deleting a doc doesn't delete the doc_permission records for it #4278

at055612 opened this issue May 17, 2024 · 1 comment
Assignees
Labels
bug f:auth Authentication, authorisation, TLS, security, etc.
Milestone

Comments

@at055612
Copy link
Member

When you delete a doc, the document permission entries are left in the db. This then causes problems if a user with perms on that deleted doc is deleted (see #3662)

@at055612 at055612 added bug f:auth Authentication, authorisation, TLS, security, etc. labels May 17, 2024
@at055612 at055612 added this to the v7.4 milestone May 17, 2024
@at055612 at055612 self-assigned this May 17, 2024
at055612 added a commit that referenced this issue May 21, 2024
Also make copy/move check for ownership in None/Destination/Combined
perm modes.
at055612 added a commit that referenced this issue May 22, 2024
Add DB mig to purge orphaned doc perms.
WIP adding test for mig
Change the addPermission method to use tryCreate
at055612 added a commit that referenced this issue May 28, 2024
at055612 added a commit that referenced this issue May 29, 2024
at055612 added a commit that referenced this issue May 29, 2024
at055612 added a commit that referenced this issue Jun 6, 2024
at055612 added a commit that referenced this issue Jun 6, 2024
at055612 added a commit that referenced this issue Jun 13, 2024
PR for #4278 - Deleting a doc doesn't delete the doc_permission records for it
@at055612
Copy link
Member Author

Fixed in > 7.5-beta.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug f:auth Authentication, authorisation, TLS, security, etc.
Projects
None yet
Development

No branches or pull requests

1 participant