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

add repair job for unencoded group share uris #25393

Merged
merged 4 commits into from
Feb 2, 2021

Conversation

blizzz
Copy link
Member

@blizzz blizzz commented Jan 29, 2021

fixes #25165

the test file shows the scenarios: we try to detect uris that are not encoded and encoding would for sure they that they would match an existing group.

A side effect I found: if an old broken share was present next to a new valid share, it would be updated successfully despite the UNIQUE index on Postgres, because PostgreSQL consider NULL columns not equal in this case. Hence, the second commit that introduces the grouping by both selected columns.→ https://www.postgresql.org/docs/current/ddl-constraints.html#DDL-CONSTRAINTS-UNIQUE-CONSTRAINTS

@blizzz
Copy link
Member Author

blizzz commented Jan 29, 2021

/backport to stable20

@blizzz
Copy link
Member Author

blizzz commented Jan 29, 2021

/backport to stable19

@blizzz blizzz force-pushed the fix/25165/repair-dav-shares branch from 2fd34ca to fc61990 Compare January 29, 2021 16:17
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzz blizzz force-pushed the fix/25165/repair-dav-shares branch from fc61990 to bd8b431 Compare January 29, 2021 16:29
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

Clean code
Tests
👍

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@rullzer rullzer modified the milestones: Nextcloud 21, Nextcloud 22 Feb 2, 2021
@rullzer
Copy link
Member

rullzer commented Feb 2, 2021

/backport to stable21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Group shared calendars missing (20.0.5)
3 participants