mdev88 / NextCloudBookmarksAndroid

App that enables a "share" option for saving links into NextCloud Bookmarks
GNU General Public License v3.0
9 stars 2 forks source link

Hangs on splash screen from first run #4

Open haverholm opened 7 years ago

haverholm commented 7 years ago

When I try to share bookmarks to Nextcloud, I only get to the screen saying "Connecting to NextCloud. Please wait." Nothing more happens, not even a blank screen like in issue #2.

mdev88 commented 7 years ago

By any chance, does your server use a self-signed certificate?

haverholm commented 7 years ago

It does not, no.

rNoz commented 7 years ago

I confirm the same behaviour.

In my case it says just: "SSL Certificate Error. Do you want to continue anyway?", It is not detailed what happened. After that, if I say "Continue" (or "Cancel") it just hangs with the blue screen and the logo saying "Contacting Nextcloud, please wait..."

I don't use self-signed certificates in the server.

mdev88 commented 7 years ago

@rNoz your problem is the one in #2 related to the self-signed certificate, don't mind the title of the issue.

@haverholm Please try the Test APK I just published and let me know if you see any change.

haverholm commented 7 years ago

No chance, sorry.

alecbl commented 7 years ago

I have the same issue as haverholm. Tested said apk but it did not help. And no, not self-signed cert (Let's Encrypt).

Seferi commented 7 years ago

I have the same problem, nextcloudbox, lets encrypt certificate. Android 7.1.2 LineageOS 14.1

Milliw commented 7 years ago

Same for me here. NextCloud 11.0.3 with https on all-inkl.com server with Let´s encrypt certificate. Sony Xperia Z3 Compact D5803 with stock Android 6.0.1 and AFWall+ (disabled for testing).

I was wondering if the "bookmarks" app has to be installed in NextCloud cause theres no mention here.

mdev88 commented 7 years ago

@MarcoWilli yes, you need to enable the Bookmarks app in your server. i mention that in the README, but I should also add that in the app too.

9662 commented 7 years ago

Sorry for the me too but… me too!

Android 7.1.1, Let's Encrypt certificate. Nextcloud 11.0.3, bookmarks app installed. Application version 1.1 from F-Droid.

c33s commented 7 years ago

same here. nexcloud 11.0.3, letsencrypt, app version 1.1 fdroid. android 6.0.1

andreas-h commented 7 years ago

Since upgrade to Nextcloud 12, I'm also affected by this bug ...

allan-null commented 7 years ago

I wanted really bad to get this app working, but I am no programmer. I wanted so bad this app I spent the whole night messing with the code to finally manage to replace the JavaScript loading in a webview for a simple URL with variables encoded with a native Java function. Only to then realize once Android kills the webview it also kills the Nextcloud session (Nextcloud default behavior is to set cookies to destroy when the browser closes). I addressed on issue #3 that webview is not the way to go in this case.

e-alfred commented 7 years ago

Same here, Nextcloud 12, Bookmarks App 0.10, Android 7.1.1 and a SSL cert from a major CA (no Letsencrypt).

I get this in the logs on the server:

{"reqId":"WT-BzH8AAQEAAGwxAD8AAAAG","level":0,"time":"2017-06-13T12:43:25+02:00","remoteAddr":"1.1.1.1","user":"--","app":"no app in context","method":"GET","url":"\/owncloud\/index.php\/apps\/bookmarks\/bookmarklet?output=popup&url=Save%20to%20Nextcloud%20Bookmarks%20(Save%20bookmarks%20on%20a%20NextCloud%20server)%20-%20https%3A%2F%2Ff-droid.org%2Fapp%2Fcom.tttdevs.stncbookmarks&title=","message":"Current user is not logged in","userAgent":"Mozilla\/5.0 (Linux; Android 7.1.1; Phone Build\/NMF26F; wv) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/58.0.3029.83 Mobile Safari\/537.36","version":"12.0.0.29"}
{"reqId":"WT-BzX8AAQEAAGwxAEAAAAAG","level":0,"time":"2017-06-13T12:43:26+02:00","remoteAddr":"1.1.1.1","user":"--","app":"core","method":"GET","url":"\/owncloud\/login?redirect_url=\/owncloud\/index.php\/apps\/bookmarks\/bookmarklet%3Foutput%3Dpopup%26url%3DSave%2520to%2520Nextcloud%2520Bookmarks%2520%28Save%2520bookmarks%2520on%2520a%2520NextCloud%2520server%29%2520-%2520https%253A%252F%252Ff-droid.org%252Fapp%252Fcom.tttdevs.stncbookmarks%26title%3D","message":"Scss is disabled for \/var\/www\/owncloud\/core\/css\/server.scss, ignoring","userAgent":"Mozilla\/5.0 (Linux; Android 7.1.1; Phone Build\/NMF26F; wv) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/58.0.3029.83 Mobile Safari\/537.36","version":"12.0.0.29"}
{"reqId":"WT-BzX8AAQEAAGwxAEAAAAAG","level":0,"time":"2017-06-13T12:43:26+02:00","remoteAddr":"1.1.1.1","user":"--","app":"core","method":"GET","url":"\/owncloud\/login?redirect_url=\/owncloud\/index.php\/apps\/bookmarks\/bookmarklet%3Foutput%3Dpopup%26url%3DSave%2520to%2520Nextcloud%2520Bookmarks%2520%28Save%2520bookmarks%2520on%2520a%2520NextCloud%2520server%29%2520-%2520https%253A%252F%252Ff-droid.org%252Fapp%252Fcom.tttdevs.stncbookmarks%26title%3D","message":"Scss is disabled for \/var\/www\/owncloud\/core\/css\/share.scss, ignoring","userAgent":"Mozilla\/5.0 (Linux; Android 7.1.1; Phone Build\/NMF26F; wv) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/58.0.3029.83 Mobile Safari\/537.36","version":"12.0.0.29"}
e-alfred commented 7 years ago

Indeed, going back to version 1.0 from F-Droid and it works. This seems to be a major regression in the 1.1 version of the app.

mdev88 commented 7 years ago

Version 1.1 wasn't supposed to be posted on F-droid ¬¬ I thought they were picking up the app from the "releases" (tags). Version 1.1 is a testing version for trying to debug these issues. I just cannot reproduce them. Can anyone give me a Nextcloud's url so that I can try to see the error myself?

haverholm commented 7 years ago

Right, so I took the recent advice and downgraded to v.1.0 from F-droid. Now I get a "Web page not available" error trying to save the first bookmark:

The web page at http://my.nextcloud.com/index.php/apps/bookmarks/bookmarklet?output=popup&url=http%3A%2F%2Fshared_url.com%2F&title= might be temporarily down or it may have moved permanently to a new web address.

wilsonhlacerda commented 7 years ago

Well yesterday I had same problem. CM13 and. Nextcloud 12 here, downloaded v1.1 from F-DROID and just hanging. After reading this issue here in github I unistalled v1.1 and installed v1.0 also from F-DROID. The problem is solved and app is working fine. So v1.1 is broken but v1.0 is ok.

Just to be clear I DO suggest to write on app that the expected URL is the server only, its main URL only. And not the url of the bookmarks app (....server/index.php/bookmarks)

Thanks for nice app! I hope it evolves to something like Basket, Pocket. By the way, how can we access/read the bookmarks on cloud on Android? And on Windows? Only way now is to open server web interface on a browser? I also hope someday we have something like Xmarks for nextcloud/OwnCloud.

e-alfred commented 7 years ago

By the way, how can we access/read the bookmarks on cloud on Android?

There is this Open Source Android app:

https://github.com/lenchan139/NCBookmark

wilsonhlacerda commented 7 years ago

There is this Open Source Android app: https://github.com/lenchan139/NCBookmark

Thanks! Tried it now but unfortunately it is almost useless yet: does not support bookmarks with more than 1 tag (and other bugs). I'll keep an eye on it. Maybe this app here can integrate some of its code so that we have only 1 app to write and read nextcloud bookmarks.

Thanks.

creideiki commented 7 years ago

I'm seeing the same issue ("Connecting to NextCloud. Please wait." forever) with version 1.1 from F-Droid. Dowgrading to 1.0 fixed it.

Web server logs say the v1.1 app retrieves the login page, and then does nothing:

$IP - - [16/Jul/2017:01:20:02 +0200] "GET /nextcloud/index.php/apps/bookmarks/bookmarklet?output=popup&url=xxx HTTP/1.1" 303 -
$IP - - [16/Jul/2017:01:20:02 +0200] "GET /nextcloud/index.php/login?redirect_url=/nextcloud/index.php/apps/bookmarks/bookmarklet%3Foutput%3Dpopup%26url%3Dxxx%26title%3Dyyy HTTP/1.1" 200 8074