-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not open TXT files by clicking on it #5975
Comments
Same Here, with Android 9, App V 3.11.1, and Oneplus 6. Except that the server log throw the following error :
In fact, the txt file is nor shared, nor owned by a diffrent account than the one used to login with the app. Server-side encryption is on. But the exact same file is opened without any issue ( and therefore decrypted) with the desktop client and in the web browser. The problem occur only with the Android App. NC server version 18.0.4 |
Server 17.0.6, android 10, nokia 7.1, app 3.11.1 172.17.0.2 - <username> [19/May/2020:20:14:42 +0000] "GET /ocs/v1.php/cloud/user?format=json HTTP/1.1" 200 1318 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.11.1"
172.17.0.2 - - [19/May/2020:20:14:42 +0000] "GET /apps/richdocuments/direct/<hash> HTTP/1.1" 200 2504 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.11.1"
172.17.0.2 - - [19/May/2020:20:14:43 +0000] "GET /core/js/oc.js?v=a34328ca HTTP/1.1" 200 9251 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.11.1"
172.17.0.2 - - [19/May/2020:20:14:43 +0000] "GET /cron.php HTTP/1.1" 200 895 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.11.1" Server logs when opening txt in edit mode are similar. I'd say not the server issue but I don't know the software well so I might be wrong. Web works fine. Well, as for mobile app logs. What I did is cleared logs, navigated to Documents and tried opening About.odt, after I got a popup that "this is loading kinda long" I went back to menu and sent myself the log file. So here it is:
|
Some additional observations on how I need to edit a simple text file.
At first I thought this is it but then I found out that the file is NOT synced back to server. I checked on my desktop and web client - no Activity for this file. Even a couple of "pull down" gestures in the android client did not help. So I have to do another step:
Only now is the file synced to the server. The only relevant log entries on my local server that I found are these:
I tried this on 3 separate NC accounts: my own local server, Disroot.org and Tab.digital. On the first two the symptoms are the same but Tab.digital behaves differently (maybe a different version of NC server?): the file loads quickly but it opens in some kind of internal editor that is not very useful for editing. |
@juliushaertl do you have any idea? |
Are you using server-side encryption and you have a master key setup? I think without a master key editing might not work there since the android app is accessing the file without an active user session though a one-time access token. |
For me, I'm not using encryption on the server at all. |
Same behavior as described by @avalx here, see the detailed "work-around" with downloading, open with, etc. I confirm the exact behavior and options as mentioned above. Using current Nextcloud mobile app from the Google Play Store on a Motorola One Vision with Android 10. |
This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you! |
Just wanted to add that with the latest client now I have the same problem with the html files. If I want to open something like bookmarks.html it opens in text mode in the internal viewer even if I have setup to always open html files with my default browser. And again I have to do a lot of "tap actions" to open a html file in my browser. Not very convenient at all! |
This will be fixed via #6775 |
@juliushaertl for the other bug? |
I'm not sure how to continue here. I cannot reproduce this with the latest 18.0.7 release so unless we get an instance where we can reproduce this and have a look at the javascript console of the webview or disable the loading viewer so we can see if the text app is rendered properly in the background I'm out of ideas of what this could be. |
Just a suggestion: |
They seem to use 18.0.6… (https://cloud.disroot.org/status.php) |
Same issue here. Using latest Nextcloud 19.0.1 on the server side and 3.13.0 android client. Do you need any help reproducing the error? |
My observations on this topic:
My versions:
I hope this information helps. |
@juliushaertl any idea? |
I applied for an account on disroot, let's see if I can reproduce on that then once they have approved it. |
for information, I tried the solution suggested by xpfgsyb my observation is the same : the TXT files does work, if the NC app "text editor" is disabled, server side. Once this app is enabled, the progress circle is just circling forever. The only way to display the content of a TXT file with the "text" app enabled server side, is to dowload it first to the device and open it from here. NC 19.0.1 - Android app 3.13.1 |
This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you! |
Just for additional info: I installed and instance of ownCloud on the same server and the Android app from F-Droid and there is no such problem with that configuration. If I tap any text file it is instantly opened in the included text editor app. Than if I use Open With and select my own editor of choice, make some changes and save the file it is updated as expected also on the server. |
Have you tested it? @juliushaertl @avalx If I understand this issue correct, it is about text app on server. oC does not have this and thus (our?) Android App just uses the regular local editor system… |
I'm not sure I understand what you're asking about. I just installed oC on my Fedora server (dnf install) and copied some text files over. Then I used the oC client to check those files and they were opened in some kind of editor that looks the same as the one on NC - so my conclusion was that this is a similar app (was I wrong about that?). After that I tap on the "three dots" menu and chose "Open with" to open the same file with my local editor app on the phone (I'm using this one https://f-droid.org/en/packages/org.billthefarmer.editor/). Hope this makes sense, if not I can try and make a video of usage on my phone. |
I think i never received a mail for the account, not sure if something went wrong there. I'm happy to look into it again if someone can provide me with a test account. If the same editor opens up with the Nextcloud and owncloud client this is most likely not the text app itself that is causing issues then. |
The same happens to me with Nextcloud 22 and Android 3.17.1 on a test-installation with a self-created CA-authority. As long as the CA-certificate is not installed in the systems certificate store, text files cannot be loaded. It is not enough to confirm the warning message when logging in. You have to install the certificate. |
I'm seeing this with Nextcloud 24.0.7 server and Android client 3.22.3 installed from the Aurora store. I am not using server-side Nextcloud encryption, not using a self-signed cert. Nothing relevant in the server logs. #9536 and #9771 look similar. The sync / open with / Markor workaround seems to work for me but it is difficult to convince users on my instance to use that workaround. |
Steps to reproduce
Expected behaviour
File should open in the appropriate app for text editing.
Actual behaviour
Nothing happens - the activity circle goes on indefinitely and there is the mentioned message at the bottom. This only happens for files with extension txt and md. If choosing any other file type this does not happen - the file is downloaded and opened with a selected app. If I change the extension to something else, for example to file.text or file.html, the file opens immediately and I can edit it as well. On the other hand if I first download the file (thee dots -> Download) and then tap on it, it opens immediately.
Can you reproduce this problem on https://try.nextcloud.com?
Did not test this yet, but I tested with two different NC accounts and on both this problem is present.
Environment data
Android version: 9
Device model: Oneplus 3
Stock or customized system: Stock Oxygen OS 9.0.6
Nextcloud app version: 3.11.1
Nextcloud server version: 18.0.4
Reverse proxy:
Nextcloud log (data/nextcloud.log)
NOTE: Be super sure to remove sensitive data like passwords, note that everybody can look here! You can use the Issue Template application to prefill some of the required information: https://apps.nextcloud.com/apps/issuetemplate
The text was updated successfully, but these errors were encountered: