Bug 88858 - document in attachment crashes the viewer
Summary: document in attachment crashes the viewer
Status: RESOLVED DUPLICATE of bug 93281
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Android Viewer (show other bugs)
Version:
(earliest affected)
4.4.0.0.alpha0+ Master
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-28 15:42 UTC by Luc
Modified: 2015-10-03 20:03 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luc 2015-01-28 15:42:29 UTC
I received a .odt (actually the 4.4 Press release) in my mail on my Android device.  Double clicking on the attachement starts the viewer, then it terminates. I do not know if it crashes.

If I save the document first I can open it nicely in the viewer.

Device: Nexus 5
Android version: 5.01
Viewer installed via Google Play.
Comment 1 raal 2015-01-29 13:38:56 UTC
I can confirm with Version: 4.5.0.0.alpha0+
Build ID: 802b80fcd378d5788adff1c7c98af526651a30c2
andrioid 4.1.1
K9 mail
Comment 2 Christian Lohmaier 2015-05-26 13:50:15 UTC
works with gmail - so must be some quirk in other mail programs - so K9 mail is mentioned - what mailprogram does Luc use?

The mail-app should send a corresponding Intent that the Viewer picks up. The Viewer (in current versions) will try to copy the data to a temporary file and then open that.

That copy file to temp even has different handlings for K9 mail vs gmail already when opening csv (they use different mimetypes, and the viewer needs to make sure it has csv extension to open in calc mode), so it works in principle/when that code was written


And would be nice if you could provide a logcat when trying to open it. (Is it the mimetype matching or the creation of a temporary file that fails?)
Or - more surprising - the actual loading of the file (as downloading the file first does work, according to the report)

→ needinfo
Comment 3 raal 2015-05-26 14:53:46 UTC
works for me with Version: 4.5.0.0.alpha0+
Build ID: aea8f62
Comment 4 Tamim 2015-05-28 18:10:51 UTC
I have a similar problem opening a .docx attachment. I tried to open it from the gmail app, started the viewer, then the viewer immediately terminates with the toast message "This file is read-only, saving is disabled."

Device: Nexus 5
Android version 5.1
Version 5.0.0.0.alpha1+
BuildID: ab465b9
Comment 5 Christian Lohmaier 2015-10-03 20:03:53 UTC
assume it's duplicate.

if you can still reproduce next week (in other words with the next version of the apk that I'll upload within the next two days), then please feel free to reopen

*** This bug has been marked as a duplicate of bug 93281 ***