nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.16k stars 1.75k forks source link

nextcloud client connects not only to where I want it #11137

Open alphafrau5 opened 1 year ago

alphafrau5 commented 1 year ago

⚠️ Before posting ⚠️

Steps to reproduce

Using the client in a 'normal' way

Expected behaviour

client should connect to my nextcloud instance

Actual behaviour

client connects to other servers 04 12 2022_1

Android version

12

Device brand and model

cat s52

Stock or custom OS?

Stock

Nextcloud android app version

3.23.0

Nextcloud server version

24

Using a reverse proxy?

I don't know

Android logs

No response

Server error logs

No response

Additional information

No response

debojyoti452 commented 1 year ago

@alphafrau5 Tried to reproduce it, but couldn't. Can you please add some brief steps to reproduce it? Would be helpful

alphafrau5 commented 1 year ago

Doesn't do it every time I use it. But does once in a while: 06 12 2022

The times at the left are today (12-06), 11-08 and 10-28. The latter was installation on crashed and reinstalled android. Middle was a new version of the nextcloud client. And the first one today. The red colour comes from blocking access.

alphafrau5 commented 1 year ago

tzurl.org uses https://github.com/ical4j/tzurl for timezone conversions. But why needs a 'file client' such thing? Hopefully the client doesn't read (and interprete) the files. And if an ordinary timestamp isn't good enough then why not let the server decide which version is newer? Just wondering.

alphafrau5 commented 1 year ago

Btw the screenshot comes from https://github.com/M66B/NetGuard I use it quite a lot to block unwanted communication. A lot of apps 'phone home' or share data with eg criteo or/and google analytics and/or ...

alphafrau5 commented 1 year ago

It goes on. I can't see a clear time sceme. 09 12 2022

09 12 2022 (1)

alphafrau5 commented 1 year ago

09 12 2022 (2)

AlvaroBrey commented 1 year ago

@alphafrau5 have you enabled automatic calendar backup?

alphafrau5 commented 1 year ago

Yes.

alphafrau5 commented 1 year ago

I now deactivated backup and see if the calls to tzurl will continue 12 12 2022

AlvaroBrey commented 1 year ago

Calendar backup uses ical4j, so I guessed the calls came from there, although I'm not sure why, and that should only run once a day. I'm also not sure were they're coming from now.

alphafrau5 commented 1 year ago

16 12 2022 This seems to be fact: calendar backup needs the internet. The other connections will remain mysterious.

joshtrichards commented 11 months ago
j-lakeman commented 8 months ago

I can reproduce this behavior with Rethink DNS. In my case Nextcloud tries to connect to 52.65.185.217, which Rethink DNS tells me is tzurl.org and apparently an Australian IP. It gets blocked as it tries to establish an unsafe HTTP connection. Just like OP pointed out, I'd expect the app only to connect to my server.

Any update on this so far?

joshtrichards commented 8 months ago

tzurl.org is used by ical4j (which, in turn, is used in the Calendar backup/imports feature). The outgoing periodic checks are to check for and/or retrieve updated timezone definitions in case the built-in one is out-of-date.

j-lakeman commented 8 months ago

Cheers got it. Is this really necessary though and if yes could the requests be made through TLS?