-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Skip preview expiry when owner cannot be determined #34118
Conversation
In some scenarios, the owner of trashed files or versions cannot be determined, instead of failing hard, just skip expiration. This is just a mitigation as we need a proper solution for trash/version preview expiry.
Codecov Report
@@ Coverage Diff @@
## master #34118 +/- ##
============================================
- Coverage 64.76% 64.76% -0.01%
- Complexity 18345 18347 +2
============================================
Files 1198 1198
Lines 69450 69454 +4
Branches 1281 1281
============================================
Hits 44982 44982
- Misses 24095 24099 +4
Partials 373 373
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #34118 +/- ##
============================================
- Coverage 64.76% 64.76% -0.01%
- Complexity 18345 18347 +2
============================================
Files 1198 1198
Lines 69450 69454 +4
Branches 1281 1281
============================================
Hits 44982 44982
- Misses 24095 24099 +4
Partials 373 373
Continue to review full report at Codecov.
|
Nice - pretty sure I've seen logs on my own instance because of this. |
yes, also had some on my own instance... I still need to manually test this to confirm it does work. |
Tested manually with the steps from and breakpoints: #32346 (comment) The skipping code is run and version previews are still on-disk, as expected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Test steps here: #32346 (comment) Before the fix you'll see an exception in the log. Since this is a mitigation the version previews will still be present on disk and won't be deleted until we have a proper fix. |
Description
In some scenarios, the owner of trashed files or versions cannot be determined, instead of failing hard, just skip expiration.
This is just a mitigation as we need a proper solution for trash/version
preview expiry.
Please note that this is just a mitigation and actual issue isn't fixed yet (see below) as we need to bigger changes in the preview code to accomodate for versions, see #33188
Related Issue
Mitigation for #32346 (version expiry) and https://github.com/owncloud/enterprise/issues/3067 (trash expiry).
Motivation and Context
Mitigate the issue and avoid stopping the process or crashing whenever expiry did not work.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: