haku / Onosendai

A multi-column social network client for Android
Apache License 2.0
18 stars 11 forks source link

Attachments from other apps lose their temporary credentials when send is retried #150

Closed haku closed 9 years ago

haku commented 9 years ago

When apps shared files to each other via intents, some magic happens where temporary credentials are somehow attached via the intent object. OS reads a resource URI from the incoming intent, but does not resolve it until it tries to upload the file. In the retry scenario these tmp creds have probably expired / evaporated / something. The fix is probably to copy the file to OS's cache when creating the outbox entry (i.e. when the "Post" button is clicked) and then reference that from the outbox item instead.

haku commented 9 years ago

Fixed, AFAIK. Closing.