Skip to content

Catch possible database exceptions when fetching document data - #1202

Merged
juliusknorr merged 4 commits into
masterfrom
bugfix/noid/error-handling
Dec 3, 2020
Merged

Catch possible database exceptions when fetching document data#1202
juliusknorr merged 4 commits into
masterfrom
bugfix/noid/error-handling

Conversation

@juliusknorr

Copy link
Copy Markdown
Member

Fixes an issue where an already cleaned up document in the database caused an uncatched exception (most likely due to the session being still valid in the cache but the document got cleaned up already.

A case where this could happen is the third commit where when a document was reset due to conflict resultion the sessions were not cleaned up immediately.

@juliusknorrjuliusknorr added bug Something isn't working 3. to review labels Nov 25, 2020
@juliusknorrjuliusknorr added this to the Nextcloud 21 milestone Nov 25, 2020
Signed-off-by: Julius Härtl <jus@bitgrid.net>
… reconnect manually
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr

Copy link
Copy Markdown
MemberAuthor

/backport to stable20

@juliusknorr

Copy link
Copy Markdown
MemberAuthor

/backport to stable19

@rullzerrullzer 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.

Looks good but didn't test

@juliusknorr
juliusknorr merged commit 825fe1d into masterDec 3, 2020
@juliusknorr
juliusknorr deleted the bugfix/noid/error-handling branch December 3, 2020 09:01
@backportbot-nextcloud

Copy link
Copy Markdown

The backport to stable20 failed. Please do this backport manually.

@backportbot-nextcloud

Copy link
Copy Markdown

The backport to stable19 failed. Please do this backport manually.

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

Labels

4. to releasebugSomething isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@juliusknorr@rullzer@skjnldsv