Repository navigation
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. |
|
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: