server icon indicating copy to clipboard operation
server copied to clipboard

[stable25] fix: Make sure that rollback hook is triggered on all version backends

Open backportbot-nextcloud[bot] opened this issue 3 years ago • 3 comments

  • [x] :warning: This backport had conflicts that were resolved with the 'ours' merge strategy and is likely incomplete

backport of #36690

CI issues, moving to 25.0.8

blizzz avatar May 17 '23 11:05 blizzz

@icewind1991 The remaining failure puzzles me. As far as my debugging goes it seems the mountpoint is properly setup in the test but when calling getFileById on the user folder it is not found. Any chance you could have a look if you have any clue?


There was 1 error:

1) OCA\Files_Versions\Tests\VersioningTest::testRestoreCrossStorage
Error: Call to a member function getPath() on null

/home/runner/work/server/server/apps/files_versions/lib/Versions/LegacyVersionsBackend.php:74
/home/runner/work/server/server/apps/files_versions/lib/Versions/VersionManager.php:92
/home/runner/work/server/server/apps/files_versions/tests/VersioningTest.php:794
/home/runner/work/server/server/apps/files_versions/tests/VersioningTest.php:652

juliusknorr avatar Jun 07 '23 12:06 juliusknorr

moving to 25.0.9

blizzz avatar Jun 15 '23 09:06 blizzz

The remaining failure puzzles me. As far as my debugging goes it seems the mountpoint is properly setup in the test but when calling getFileById on the user folder it is not found. Any chance you could have a look if you have any clue?

Mounts mounted directly in test cases through Filesystem::mount don't get added the user mount cache.

icewind1991 avatar Jul 06 '23 14:07 icewind1991

rebased, squashed, and a minor cs fix

blizzz avatar Jul 07 '23 16:07 blizzz