Checksum won't be reset if there is a new checksum to be set#37934
Checksum won't be reset if there is a new checksum to be set#37934
Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
e8a5425 to
a6ca73e
Compare
|
It seems we've hit a weird issue with oracle. That's the before and after states when the update happens in https://github.com/owncloud/core/blob/checksum_reset_fix/apps/files/tests/Command/VerifyChecksumsTest.php#L309 along with the executed query. It seems the update query fails to execute somehow and the checksum isn't reset in the test, causing the failure. Removing https://github.com/owncloud/core/pull/37934/files#diff-0b9e2319ad842ab51e0c0f31b25cae21R213 fixes the test, but I guess it's due to the checksum not being set in the first place, so this isn't a solution. |
|
Confirmed that the "update" statement doesn't do anything in oracle: |
28966bc to
0585b2c
Compare
Codecov Report
@@ Coverage Diff @@
## master #37934 +/- ##
============================================
+ Coverage 64.71% 64.72% +0.01%
- Complexity 19442 19449 +7
============================================
Files 1286 1286
Lines 76022 76047 +25
Branches 1336 1336
============================================
+ Hits 49196 49220 +24
- Misses 26432 26433 +1
Partials 394 394
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
@jvillafanez this needs a rebase so that it runs the latest CI and does the SonarCloud-analysis stuff... |
Restore some of the previous code. Changes no longer needed
5f3ba76 to
9273c18
Compare
|
Rebased |
|
Kudos, SonarCloud Quality Gate passed!
|
Description
Don't reset the checksum when the same file is reuploaded. In addition, copy the checksum of the original file to the version when a new version is successfully created.
There has been some problems with oracle and the updating of the file cache which are now solved
Related Issue
https://github.com/owncloud/enterprise/issues/4206
Motivation and Context
How Has This Been Tested?
Manually checked with oracle DB:
Additional checks:
part_file_in_storage => falseScreenshots (if appropriate):
Types of changes
Checklist: