Ignore unknown files in client directories during temporary storage initialization
Categories
(Core :: Storage: Quota Manager, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: janv, Assigned: janv)
References
(Blocks 1 open bug)
Details
Attachments
(18 files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
This mostly involves IndexedDB client directory, but we should verify that other quota clients don't have this problem either.
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
We plan to replace this test with more thorough tests in bug 1620277, but for
now it's still needed and will be part of a short term fix for ignoriging
unknown files and directories.
Assignee | ||
Comment 2•4 years ago
|
||
Depends on D75948
Assignee | ||
Comment 3•4 years ago
|
||
Depends on D75949
Assignee | ||
Comment 4•4 years ago
|
||
Depends on D75950
Assignee | ||
Comment 5•4 years ago
|
||
Depends on D75951
Assignee | ||
Comment 6•4 years ago
|
||
Assignee | ||
Comment 7•4 years ago
|
||
A generated profile now matches real world profiles:
- contains directory metadata
- contains real quota client specific files
- contains unique non-empty unknown files (instead of empty foo.bar files)
- contains unique non-empty unknown directories (instead of empty foo dirs)
There's now only one origin directory which contains unknown files and
directories. All methods that take a principal are verified to work with the
origin direcrtory.
Depends on D76095
Assignee | ||
Comment 8•4 years ago
|
||
SimpleDB files on disk now use a suffix, so unknown files can be filtered out.
Depends on D76700
Assignee | ||
Comment 9•4 years ago
|
||
The functionality needs to be verified for all initialization states (modes)
since some methods don't automatically trigger temporary storage initialization
which results in calling different quota client methods (for example
GetUsageForOrigin calls either Client::InitOrigin or Client::GetUsageForOrigin).
Depends on D76701
Assignee | ||
Comment 10•4 years ago
|
||
All unknown files in the files and journals directory are now properly filtered
out if the filename can't be converted to an integer.
Depends on D76702
Assignee | ||
Comment 11•4 years ago
|
||
Depends on D76703
Assignee | ||
Comment 12•4 years ago
|
||
Cache API is currently not consistent regarding unknown files. Some unknown
files are reported and ignored, other unknown files are reported and deleted or
just silently deleted without a warning.
Quota Manager, IndexedDB, SimpleDB and LocalStorage currently report and ignore
such files. We should try to unify this in future.
Depends on D76717
Assignee | ||
Comment 13•4 years ago
|
||
Depends on D76718
Assignee | ||
Comment 14•4 years ago
|
||
The method returns a database filename without any extension, so the method name
needs to express that.
Depends on D77068
Assignee | ||
Comment 15•4 years ago
|
||
Depends on D77069
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 16•4 years ago
|
||
Depends on D77070
Assignee | ||
Comment 17•4 years ago
|
||
Depends on D77072
Comment 18•4 years ago
|
||
Assignee | ||
Comment 19•4 years ago
|
||
There will be some followup patches, but the core problem should be covered by the patches that have been already submitted.
Comment 20•4 years ago
|
||
bugherder |
Assignee | ||
Comment 21•4 years ago
|
||
Depends on D77073
Updated•4 years ago
|
Comment 22•4 years ago
|
||
Comment 23•4 years ago
|
||
Updated•4 years ago
|
Comment 24•4 years ago
|
||
Comment 25•4 years ago
|
||
Comment 26•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b9737a318730
https://hg.mozilla.org/mozilla-central/rev/6a5e10dfd0d0
https://hg.mozilla.org/mozilla-central/rev/3af8bec13325
https://hg.mozilla.org/mozilla-central/rev/904cc259a98d
https://hg.mozilla.org/mozilla-central/rev/3e78d35a061c
https://hg.mozilla.org/mozilla-central/rev/cb80856ac40b
https://hg.mozilla.org/mozilla-central/rev/b1a0dc2886ce
https://hg.mozilla.org/mozilla-central/rev/5a575e559146
https://hg.mozilla.org/mozilla-central/rev/3dfe670a0bd2
https://hg.mozilla.org/mozilla-central/rev/3bee45f35de2
https://hg.mozilla.org/mozilla-central/rev/a235cbd69f6f
https://hg.mozilla.org/mozilla-central/rev/29086c8c3e4e
https://hg.mozilla.org/mozilla-central/rev/24d3d987b60d
https://hg.mozilla.org/mozilla-central/rev/c3f73781a871
Comment 27•4 years ago
|
||
bugherder |
Assignee | ||
Updated•4 years ago
|
Comment 28•4 years ago
|
||
Comment 29•4 years ago
|
||
Backed out for causing failure at QuotaRequests.cpp
Backout link: https://hg.mozilla.org/integration/autoland/rev/10ad7868f3ca27cb90db9bd1d392ff4d7852a0cd
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=305898003&repo=autoland&lineNumber=26592
Comment 30•4 years ago
|
||
Comment 31•4 years ago
|
||
bugherder |
Assignee | ||
Updated•2 years ago
|
Description
•