nextcloud/tests/lib/App/AppStore
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
..
Bundles chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Fetcher fix(appstore): catch GenericFileException when reading cache file in Fetcher 2026-05-19 16:34:06 +02:00
Version chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00