Skip to content
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

cant edit markdown files #9771

Closed
mstyp opened this issue Jan 27, 2022 · 11 comments · Fixed by #9881
Closed

cant edit markdown files #9771

mstyp opened this issue Jan 27, 2022 · 11 comments · Fixed by #9881
Labels
bug needs info Waiting for info from user(s). Issues with this label will auto-stale.

Comments

@mstyp
Copy link

mstyp commented Jan 27, 2022

Steps to reproduce

  1. open app.
  2. click 3 dot menue next to share button next to file name
  3. click edit
  4. spinning blue wheel appears
  5. after a while little grey box appears saying "loading takes very long..." but no other info
  6. wait. wait. wait. nothing ever happens, its been doing that for more then five minutes.

Expected behavior

Honestly I dont know what should happen. I have never actually seen the file editer. Its never worked through all the various versions of the app.

Actual behaviour

Just loads forever.

Can you reproduce this problem on https://try.nextcloud.com?

No. This tablet by design does not connect to the internet. It only ever connects to a local lan, and the server only ever runs on the local lan with no connection to the broader internet (other then me moving files over by USB stick). so no cant reproduce on random internet facing service.

Environment data

Android version: 10

Device model: Samsung tablet

Stock or customized system: NA

Nextcloud app version: EDIT 3.18.0.
Not sure, still waiting to see if the app times out or gives some other information or something. Will wait five minutes then edit this comment

Nextcloud server version: 22.2.3

Reverse proxy: idk what that is

Logs

its really hard to annonimise logs so I wont bother unless somone tells me its absolutly nessisary.

@mstyp mstyp added the bug label Jan 27, 2022
@yamsu
Copy link

yamsu commented Jan 28, 2022

I have had this issue when my ssl certificate was not secure/incorrectly installed. Once the ssl certificate was corrected the editor worked without trouble.

@mstyp
Copy link
Author

mstyp commented Jan 28, 2022

I have had this issue when my ssl certificate was not secure/incorrectly installed. Once the ssl certificate was corrected the editor worked without trouble.

do you mean I cant use a self signed cert or do you mean I need to do some other fix? My server never touches the internet and uses nextcloud.local as the domain so I'mnot sure I can get anything but a self signed cert.

using https on a network that is airgapped to the point of needing to move files over via flash drive is dumb anyways its so frustrating I have to deal with problems like this.

@AlvaroBrey
Copy link
Member

AlvaroBrey commented Jan 31, 2022

Hm, this is actually possibly a result of the network being airgapped. The file editor is served from the Nextcloud server as a webpage, however it should be working as all assets should be served directly from Nextcloud without internet access.

Do you have an up-to-date Webview implementation installed in your tablet?

@AlvaroBrey AlvaroBrey added the needs info Waiting for info from user(s). Issues with this label will auto-stale. label Jan 31, 2022
@mstyp
Copy link
Author

mstyp commented Feb 2, 2022

Do you have an up-to-date Webview implementation installed in your tablet?

According to the settings I have enabled:

Android System WebView 80.0.3987.99

Which does look out of date, but I'm not sure If I can updated it. Is that version unsupported?

@AlvaroBrey
Copy link
Member

According to the settings I have enabled:

Android System WebView 80.0.3987.99

Which does look out of date, but I'm not sure If I can updated it. Is that version unsupported?

No idea, we don't keep track of supported WebView versions AFAIK.

Another question: Does the file editor work from the web ui? (just login into the web UI and click a text file)

@mstyp
Copy link
Author

mstyp commented Feb 3, 2022

Another question: Does the file editor work from the web ui? (just login into the web UI and click a text file)

Yes, markdown webui works fantastic on desktop Firefox and extraordinarily slowly on android Firefox (well once it loads its fine just takes ~10 seconds to load). chrome browser is a bit faster on android.

I should also note that, if I have synced the file to the tablet, I can read markdown and txt files just fine within the nextcloud android app. its only when I try to edit the file within nextcloud, an an infanate loop starts. Just trying to read a file I have not synced does not work either, I need to download the file, then I can read it.

once file is synced I have to edit with markor, which causes problems because markor has different markdown conventions then nextcloud in regards to linking file attachments and the like.

@mstyp
Copy link
Author

mstyp commented Feb 14, 2022

I attempted to check the logs for my nextcloud server to see if they revealed anything, but there is absolutely nothing different between the logs for when I try to edit a file, and just not doing anything at all for 30 minutes.

Is there a way to check error logs just for the nextcloud android app?

@mstyp
Copy link
Author

mstyp commented Feb 14, 2022

It seems that I can edit markdown files with the nextcloud dev version. So now I'm not sure whats up.

@AlvaroBrey
Copy link
Member

AlvaroBrey commented Feb 14, 2022

Is there a way to check error logs just for the nextcloud android app?

https://github.com/nextcloud/android/blob/master/README.md#getting-debug-info-via-logcat-mag explains how to using a terminal

@AlvaroBrey
Copy link
Member

Can any of the affected users try the QA apk in #9881 (comment)?

@mstyp
Copy link
Author

mstyp commented Mar 4, 2022

Can any of the affected users try the QA apk in #9881 (comment)?

Hey, apologies for delay following up on this but yes this QA apk does allow me to edit text files! Awesome!

I looked at that discussion thread and I think you might have already decided to implement it, and if so I'm excited!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs info Waiting for info from user(s). Issues with this label will auto-stale.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants