nextcloud/tests/lib/App
Anna Larch 5113b18739 fix(appstore): catch GenericFileException when reading cache file in Fetcher
When the appstore cache file exists but getContent() throws a
GenericFileException (I/O error or OS-level permission failure), explicitly
delete the file and recreate it before writing fresh data — mirroring the
NotFoundException recovery path. If deletion itself fails, return [] cleanly.

Previously, the unhandled exception caused the entire apps settings page to
crash. The new test covers both the recovery path and deletion failure.

Signed-off-by: Anna Larch <anna@nextcloud.com>
AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-19 16:34:06 +02:00
..
AppStore fix(appstore): catch GenericFileException when reading cache file in Fetcher 2026-05-19 16:34:06 +02:00
AppManagerTest.php refactor: split appstore from settings 2026-05-05 10:41:04 +02:00
CompareVersionTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
DependencyAnalyzerTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
InfoParserTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
PlatformRepositoryTest.php refactor: Cleanup some unit tests 2025-10-01 10:11:27 +02:00