Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
moftot
3 years agoExplorer | Level 4
Latest Android app breaks viewing log files
Latest Android app 320.2.10 breaks viewing log files (files with .log extension). It now shows the following error message instead of launching the default app set (in my case Log File Viewer) or...
rharter_dbx
Dropbox Engineer
3 years agoHey @moftot, @spc11400, and everyone else following along.
I'm Ryan, and I'm the tech lead on the Previews team for Android.
Thanks for reporting this. Thanks to your report I've been able to reproduce this and have found the issue in the code that caused the change in behavior. I've filed a bug and will get that fixed ASAP.
In the meantime, if you install another app that supports viewing and editing log files you should see a pop that displays available apps on your device.
Best
Ryan
moftot
3 years agoExplorer | Level 4
Excellent that you can reproduce, but I'm confused by what your write: The issue is that the app doesn't give you the opportunity to select the app to view a given file extension for some specific file extensions, in this case .log. Same problem with .bak, .conf, .downloaded and .xml.
It works for .txt and .html and has been working for probably at least 5 years for .log, but no longer so in the newest version. Now it just shows the error message.
And to the previous reply: Having to go through 10+ steps to export, find and view a given file is not a user friendly replacement for a broken 1 step functionality. I'm happy to be contacted via e-mail and prepare+share problematic files and screenshots, plus internal log files if logging can be switched on in your production version of the app.
It works for .txt and .html and has been working for probably at least 5 years for .log, but no longer so in the newest version. Now it just shows the error message.
And to the previous reply: Having to go through 10+ steps to export, find and view a given file is not a user friendly replacement for a broken 1 step functionality. I'm happy to be contacted via e-mail and prepare+share problematic files and screenshots, plus internal log files if logging can be switched on in your production version of the app.
- moftot3 years agoExplorer | Level 4
I've created 21 test files with different file extensions with appropriate content, a mix of text and binary files. 4 of these extensions are "homemade" (marked in bold below) but I would still expect the Dropbox app to allow me to choose the viewer for each and keep that mapping as the preferred viewer:
.bak
.cache
.conf
.css
.db
.deb
.downloaded
.html
.ico
.ini
.jar
.json
.log
.m3u
.png
.properties
.sh
.txt
.xlsx
.xml
.zipI've dusted off an old phone with a previous version of the Dropbox app and that works with more file extensions (but still not all).
Here's the comparison:
- Dropbox 310.2.2 Android 9: 13 out of 21 work
- Dropbox 320.2.10 Android 12: 9 out of 21 work (4 less than before: .ini, .json, .log, .properties.xml no longer work but .zip has started working)
If you contact me via e-mail I can share a link to my Dropbox folder structure with the test files.
Dropbox 310.2.2 Android 9: 13 out of 21 work
1. Text
1.1 Failure (should give me the opportunity to use Log Viewer or Dropbox Text Editor)
.bak
.cache
.conf
.deb
.downloaded1.2 Success
.css
.html
.ini
.json
.log
.m3u
.properties
.sh
.txt
.xml2. Binary
2.1 Failure (don't have viewers installed for these, so this is to be expected)
.db
.jar
.zip2.2 Success
.ico
.png
.xlsx
Dropbox 320.2.10 Android 121. Text
1.1 Failure (should give me the opportunity to use Log Viewer or Dropbox Text Editor)
.bak
.cache
.conf
.deb
.downloaded
.ini
.json
.log
.properties
.xml1.2 Success
.css
.html
.m3u
.sh
.txt
2. Binary
2.1 Failure (don't have viewers installed for these, so this is to be expected).db
.jar
2.2 Success
.ico
.png
.xlsx
.zip - BenDBX3 years ago
Community Manager
Hi moftot
Thanks for the additional context and the offer to provide your folder structure. I have checked with the team, and they don't believe they need that information right now, but we will certainly reach out if that changes.
In the meantime, we are working on a fix. I will update this thread when I have more news!
Regards,
Ben
- BenDBX3 years ago
Community Manager
Hi moftot
A fix for this file extension issue was deployed with the latest beta build,
which you can find here.Apologies for linking the Desktop build. You can find the instructions for accessing the Android beta here.
Let us know if you are still experiencing any problems viewing these file extensions after installing the beta and I will make sure it gets passed onto the correct team.
Regards,
Ben
- moftot3 years agoExplorer | Level 4
Thanks, but not sure how I'm supposed to install a desktop build on my Android phone?
- rharter_dbx3 years ago
Dropbox Engineer
That's just the wrong link. You can get the Android beta from the Play Store by following these instructions.
- moftot3 years agoExplorer | Level 4
Thanks for providing the correct link.
A little progress: I can now open log files, but I cannot choose the viewer, they're always opened in Dropbox Text Editor.
It seems completely random whether a given file extension will allow choice of viewer or not. I'll provide a complete list of behavior for each of the file extensions I've mentioned previously tomorrow.
- rharter_dbx3 years ago
Dropbox Engineer
This behavior is based on the Android sharing system, and depends on whether you have other apps installed that are configured to receive this file type. Android no longer supports sharing raw files, so we have to move to ContentProviders, which is like a URI for the web, with the "filename" being represented by the file's content id. We also add the mime-type of the file when we search for apps that can open it, and unfortunately I've seen lots of log files with a mime-type of `application/octet-stream` instead of `text/plain`, which is used for unknown binary files. This problem is likely due to apps that use file extensions to determine if they can open a file, or that aren't set up to open `application/octet-stream` files.
I'll file a ticket internally to investigate if there's a way we can make this better. - moftot3 years agoExplorer | Level 4
But I noticed this major change in behavior after upgrading to Dropbox 320, not after upgrading the OS so not sure how your explanation could apply.
Also not sure how MIME type comes into play. As I understand it, the Dropbox API doesn't support setting MIME type per file, so how do you determine the MIME type by file extension, by guessing? I don't understand what you mean by log files with incorrect MIME type? It's a text file, hence not possible to store MIME type in the file itself.
Here's what I see:
Dropbox 324.1.2 Android 12
1.1 Failure (should give me the opportunity to use Log Viewer or Dropbox Text Editor)
.bak
.cache
.conf
.deb
.downloaded1.2 Success
.ini
.json
.m3u (had to reselect which app, had already done this prior to 320.2.10, not sure why I had to do that again)
.properties1.3 Partial Success (opens in Dropbox Text Editor, doesn't allow to use Log Viewer or another relevant app)
.log
.sh
.txt
.xml1.4 Inconsistent Behavior (opens in one viewer when "clicked", opens in another viewer via Open with..., yet doesn't allow selection of which app)
.css
.html2. Binary
2.1 Failure (don't have viewers installed for these, so this is to be expected)
.db
.jar2.2 Success
.ico
.png
.xlsx - rharter_dbx3 years ago
Dropbox Engineer
The reason that you saw this after upgrading the Dropbox app is because we constantly have to upgrade the app to keep it up to date with new restrictions and policies put in place by the Android OS. So while you didn't upgrade your OS, the legacy way we were checking for apps that could open files was no longer supported on newer OS versions, so we had to update how we do things to ensure that it works for everyone.
As I mentioned, I've started discussions for this internally to look into how we can try to make this work more like it used to (while still being compatible with new Android versions).
About View, download, and export
Need support with viewing, downloading, and exporting files and folders from your Dropbox account? Find help from the Dropbox Community.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!