Closed Bug 833595 Opened 12 years ago Closed 12 years ago

[mediadb] ignore change events for hidden files

Categories

(Firefox OS Graveyard :: Gaia, defect)

x86
macOS
defect
Not set
normal

Tracking

(blocking-b2g:tef+, b2g18+ fixed, b2g18-v1.0.1 fixed)

RESOLVED FIXED
blocking-b2g tef+
Tracking Status
b2g18 + fixed
b2g18-v1.0.1 --- fixed

People

(Reporter: djf, Assigned: djf)

References

Details

(Whiteboard: QARegressExclude)

Attachments

(1 file)

MediaDB ignores files and directories whose names begin with "." when scanning. But it does not correctly ignore device storage change events for those same files. When the Camera app records a video, it generates then deletes a dot file like this, which causes the following warning in logcat: Content JS WARN at app://gallery.gaiamobile.org/shared/js/mediadb.js:1274 in anonymous: MediaDB: Unknown file in insertRecord: DCIM/100MZLLA/.VID_0004.3gp This particular warning is benign, so we don't need to fix this in the 1.0.x timeline, but we should track it and get the patch I'm about to fix landed soonish.
Dale, This is a minor patch to mediadb related to the Camera's use of a dot file. The review should be simple, but is not urgent, since I don't know when we'll be able to land this.
Assignee: nobody → dflanagan
Attachment #705131 - Flags: review?(dale)
I've attached a patch and have nominated this as tracking-b2g18 so we don't forget to land it.
tracking-b2g18: --- → ?
Comment on attachment 705131 [details] link to patch on github Sorry I was certain I had already r+'d this
Attachment #705131 - Flags: review?(dale) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Uplifted commit b29c27f68bbc19ea4f3fbfc03db059c41ccfb2d2 as: v1-train: 31db4d6fe361bd094decf8529a508fbe9950e39b
Blocks: 861930
blocking-b2g: --- → tef?
blocking-b2g: tef? → tef+
v1.0.1: 44b7bab93ce4e6c712a8659366c817641845d76c
Unable to test here. Marking as QARegressExclude.
Whiteboard: QARegressExclude
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: