Skip to content

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 blizzz added this to the Nextcloud 21 milestone Jan 29, 2021
@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
@blizzz blizzz force-pushed the fix/25165/repair-dav-shares branch from fc61990 to bd8b431 Compare January 29, 2021 16:29
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 <[email protected]>
@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)

4 participants