android icon indicating copy to clipboard operation
android copied to clipboard

Opening (Office) documents via Storage Access Framework Fails

Open jrhellriegeljr opened this issue 3 years ago • 9 comments

⚠️ Before posting ⚠️

  • [X] This is a bug, not a question or an enhancement.
  • [X] I've searched for similar issues and didn't find a duplicate.
  • [X] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • [X] I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

Use an app like Office to open an Excel spreadsheet on Nextcloud using Android's Storage Access Framework. The document doesn't open, the app itself will either crash/disappear (Excel) or revert back to the previous screen (Office). This used to work well including immediately sync'ing the document upon exiting.

Open Office Click the Folder icon in top right corner Select Browse Upper left hamburger menu/Nextcloud Browse/traverse to document Select Document Watch it crash/disappear with no error

Also, opening the document by browsing to it with the Nextcloud app would be a fine alternative and it will open the (Office) document and it is editable. The problem is upon editing it and exiting the app, it might result in it being sync'd up to the source but usually not immediately but really most times it doesn't even bother.

Expected behaviour

An external app like Office/Excel is able to open the document with Storage Access Framework, edit it and upon saving/exiting the opening app like Office, Nextcloud will immediately sync it up in the background without user intervention. This is the behavior in 3.21.2 (and prior releases).

Actual behaviour

App disappears and does not complete the action. No error is thrown.

Android version

8, 13

Device brand and model

Samsung Galaxy S21 Ultra, Samsung Galaxy S7

Stock or custom OS?

Stock

Nextcloud android app version

3.22.1

Nextcloud server version

24.0.6

Using a reverse proxy?

No

Android logs

None to post

Server error logs

None to post

Additional information

I know there are altenratives that are more open source and Nextcloud'y - but I am hooked on Excel.

In the meantime, I have reverted to 3.21.2 which works just fine.

jrhellriegeljr avatar Oct 22 '22 14:10 jrhellriegeljr

Still an issue in 3.23.1...

jrhellriegeljr avatar Dec 30 '22 19:12 jrhellriegeljr

May be related to #11216

AlvaroBrey avatar Jan 10 '23 14:01 AlvaroBrey

Appearently the same issue (crash) exists when importing a PDF file in Secure PDF Viewer

Google Play: https://play.google.com/store/apps/details?id=app.grapheneos.pdfviewer.play

Github: https://github.com/GrapheneOS/PdfViewer

Christedge avatar Feb 05 '23 20:02 Christedge

Still an issue in 3.25.0; looking forward to when it's fixed so I can take advantage of all the features since it last worked in 3.21.2.

jrhellriegeljr avatar Jun 15 '23 16:06 jrhellriegeljr

Today I installed Android 13 update as provided by Symsung for a Samsung Galaxy Tab S7 FE, 12,4 Zoll, 64 GB interner Speicher, 4 GB RAM, Wi-Fi

Still Secure PDF Viewer crashes as well as my very own app, https://github.com/Christedge/Notenanzeiger , as soon I attempt to import an PDF :( .

Christedge avatar Jun 15 '23 19:06 Christedge

Any updates on this? Still happening for me with MJ PDF.

j-lakeman avatar Mar 15 '24 22:03 j-lakeman

I'm still holding out hope this will be fixed!

jrhellriegeljr avatar Jun 12 '24 18:06 jrhellriegeljr

Plus one. That would be appreciated at my end as well.

Christedge avatar Jun 12 '24 18:06 Christedge

Still broken, still hoping it'll get fixed someday.

jrhellriegeljr avatar Jun 08 '25 14:06 jrhellriegeljr