Open Bug 1708134 Opened 3 years ago Updated 2 years ago

[QM_TRY] Failures in dom/quota/ActorsParent.cpp:InitializeLocalStorageArchive

Categories

(Core :: Storage: Quota Manager, defect, P3)

defect

Tracking

()

People

(Reporter: jstutte, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(In reply to Jens Stutte [:jstutte] from comment #0)

Clients Sessions Hits Anchor Stack
2 2 2 dom/quota/ActorsParent.cpp:InitializeLocalStorageArchive dom/quota/ActorsParent.cpp#642:NS_ERROR_FILE_READ_ONLY <- dom/quota/ActorsParent.cpp#5861:NS_ERROR_FILE_READ_ONLY

This is weird: We open the DB apparently with SQLITE_OPEN_READWRITE but only when trying to access the file for write we get an NS_ERROR_FILE_READ_ONLY ?

Flags: needinfo?(jvarga)

Well, the database opening usually only needs to read from the file, so in theory it can pass even if the file is read-only (or the media is read-only, we don't know). However, once we want to create a new table, the operation fails.
Currently we have a fallback for database corruption detected during MaybeCreateOrUpgradeLocalStorageArchive
Maybe we could add another case which would rename the existing read-only file and then create an empty database.

Flags: needinfo?(jvarga)
Severity: -- → S3
Priority: -- → P3
Depends on: 1720312
You need to log in before you can comment on or make changes to this bug.