Last modified: 2012-08-28 16:08:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40290, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38290 - WLMMobile: new photos are saved to cache space instead of permanent storage
WLMMobile: new photos are saved to cache space instead of permanent storage
Status: RESOLVED FIXED
Product: WikiLoves Monuments Mobile
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Highest blocker
: ---
Assigned To: Brion Vibber
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-10 21:38 UTC by Brion Vibber
Modified: 2012-08-28 16:08 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Brion Vibber 2012-07-10 21:38:24 UTC
When using an existing photo, we end up with a content:// URI which we can reasonably suspect is persistent.

When taking a new photo, we end up with a file:// URI into our app's cache space; this seems potentially dangerous.

If we save for later, there's a possibility that our cache space might get cleared out at some point (?). When saving for later we should probably save to more permanent storage.

[Check whether auto cache-clearing actually happens; if not then we can maybe ignore this and hope for the best.]
Comment 1 Yuvi Panda 2012-07-17 19:13:16 UTC
I just checked and found the pictures in /mnt/sdcard/DCIM/Camera. This is on a Nexus S. Perhaps this changes with phone?
Comment 2 Brion Vibber 2012-08-20 23:11:20 UTC
On my Galaxy Nexus:
D/FileTransfer(25939): upload file:///mnt/sdcard/Android/data/org.wikipedia.wlm/cache/1345503933589.jpg to https://test.wikipedia.org/w/api.php

No sign of it in /mnt/sdcard/DCIM/Camera, but I see pictures in /mnt/sdcard/Android/data/org.wikipedia.wlm/cache/ indeed.
Comment 3 Brion Vibber 2012-08-24 18:23:03 UTC
I did a quick test with adding
				saveToPhotoAlbum: true
to the camera options.

This gives us back a content:// URL which sounds nice, but... I don't see the photos in the Gallery app, which is a bit worrying.
Comment 4 Arthur Richards 2012-08-27 21:04:48 UTC
How serious is this issue? Will saved for later images get lost if the phone restarts/app gets killed/ ... ? I have also noticed that if I take a photo using the app, it does not appear in my gallery so I cannot reuse it later.
Comment 5 Phil Chang 2012-08-27 22:01:25 UTC
I would say this is serious. It is totally counter to user expectations if photos do not get saved to the gallery. And it will really piss people off if a photo is lost altogether, because uploads may not make it to Commons.

None of the photos I've taken with the app have made it to my gallery. Nexus One, Android 2.3.6
Comment 6 Brion Vibber 2012-08-27 22:05:49 UTC
ill run some more tesyd wirh rhe saveToGsllery mode tonight if you guys dont get to it first.
Comment 7 Brion Vibber 2012-08-28 04:44:54 UTC
Upstream issue with saveToPhotoAlbum option on Android:
https://issues.apache.org/jira/browse/CB-924

Apparently even when saving to the album, images don't always show up in the Gallery app until you reboot the phone (or unmount/remount SD card, if an SD card exists). According to the bug this is fixed in 1.9.0, but I can confirm with both our customized 2.0.0 and a stock 2.0.0 that it's still failing in this way on my Galaxy Nexus running 4.0.4.
Comment 8 Brion Vibber 2012-08-28 04:50:11 UTC
Pull req to save things to photo gallery, however per the above the photos may not be visible at least on some devices until a reboot (!)

https://github.com/wikimedia/WLMMobile/pull/194

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links