[stable25] fix: Make sure that rollback hook is triggered on all version backends
- [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
@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
moving to 25.0.9
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.
rebased, squashed, and a minor cs fix