Skip to content

add repair job for unencoded group share uris - #25393

Merged
rullzer merged 4 commits into
masterfrom
fix/25165/repair-dav-shares
Feb 2, 2021
Merged

add repair job for unencoded group share uris#25393
rullzer merged 4 commits into
masterfrom
fix/25165/repair-dav-shares

Conversation

@blizzz

@blizzzblizzz commented Jan 29, 2021

Copy link
Copy Markdown
Member

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
Copy Markdown
MemberAuthor

/backport to stable20

@blizzz

Copy link
Copy Markdown
MemberAuthor

/backport to stable19

@blizzz
blizzzforce-pushed the fix/25165/repair-dav-shares branch from 2fd34ca to fc61990CompareJanuary 29, 2021 16:17
Comment threadlib/private/Repair/RepairDavShares.php
Comment threadlib/private/Repair/RepairDavShares.php
Comment threadlib/private/Repair/RepairDavShares.php Outdated
Comment threadlib/private/Repair/RepairDavShares.php
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzz
blizzzforce-pushed the fix/25165/repair-dav-shares branch from fc61990 to bd8b431CompareJanuary 29, 2021 16:29
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>

@ChristophWurstChristophWurst left a comment

Copy link
Copy Markdown
Member

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>
@rullzerrullzer modified the milestones: Nextcloud 21, Nextcloud 22Feb 2, 2021
@rullzer

Copy link
Copy Markdown
Member

/backport to stable21

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsbugfeature: dav

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Group shared calendars missing (20.0.5)

3 participants

@blizzz@rullzer@ChristophWurst