You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 3, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 3, 2024. It is now read-only.
Turning on "Use HTTPS for GUI" in settings breaks the app GUI #19
All because I got curious (an in an effort to fully test the app), I decided to turn on https. This happened to break the app. I don't think there is any real big error here, the GUI just does not load anymore and syncthing crashes after a long enough time trying to load the GUI.
Either TLS needs to be supported in the interface or that setting needs to be removed on the android app. I honestly am not sure if using TLS on the android app interface is even something that you should be able to do.
The problem is that the address attribute in config.xml only contains the host:port, but not the protocol (eg <address>127.0.0.1:8080</address>).
@calmh What do you think about putting http(s)://127.0.0.1:8080 in there? (otherwise I could also read the tls attribute). I probably also need to handle the certificate to get API access, will look into that.
I suppose the login is also required to access the Rest API, so stuff breaks.
I haven't looked into it, but it shouldn't be hard to read user/pw from config.xml and passing it ín on API calls.
Also, I'd like to keep these settings in, as they're useful if you access the web interface from a different device. But they should probably be moved to "advanced settings" or something at some point after the native GUI is finished.
Okay an update on this: I tried implementing it (on the "cert-pinning" branch), but it's really complicated. Syncthing uses .pem certificates, but Android requires .bkm, and I haven't figured out how to convert that in Java (converting on a desktop as most posts say doesn't help).
If anyone has more knowledge about certificates in Java than me and wants to implement this, a pull request would be greatly appreciated.
You can find the config in storage/emulated/0/Android/data/data/com.nutomic.syncthingandroid/files/config.xml
at the bottom change tls=true -> tls=false
Activity
Nutomic commentedon May 28, 2014
The problem is that the
addressattribute in config.xml only contains the host:port, but not the protocol (eg<address>127.0.0.1:8080</address>).@calmh What do you think about putting
http(s)://127.0.0.1:8080in there? (otherwise I could also read thetlsattribute). I probably also need to handle the certificate to get API access, will look into that.rafi commentedon May 30, 2014
Same thing happened to me when I enabled the GUI login with user/password.
Nutomic commentedon May 30, 2014
I suppose the login is also required to access the Rest API, so stuff breaks.
I haven't looked into it, but it shouldn't be hard to read user/pw from config.xml and passing it ín on API calls.
Also, I'd like to keep these settings in, as they're useful if you access the web interface from a different device. But they should probably be moved to "advanced settings" or something at some point after the native GUI is finished.
rafi commentedon May 31, 2014
I can't get it back working, even tried uninstalling. couldn't find the config. un-rooted phone.
Nutomic commentedon May 31, 2014
It should definitely be gone after uninstalling. Have you tried to reboot before installing again?
icaruseffect commentedon Jun 4, 2014
Clearing the app data fixed it for me. But all settings must be done again then..
Disable HTTPS setting in native GUI (ref #19).
Disable HTTPS setting in native GUI (ref #19).
Disable HTTPS setting in native GUI (ref #19).
Disable HTTPS setting in native GUI (ref #19).
Disable HTTPS setting in native GUI (ref #19).
Disable HTTPS setting in native GUI (ref #19).
Nutomic commentedon Jul 8, 2014
Okay an update on this: I tried implementing it (on the "cert-pinning" branch), but it's really complicated. Syncthing uses .pem certificates, but Android requires .bkm, and I haven't figured out how to convert that in Java (converting on a desktop as most posts say doesn't help).
If anyone has more knowledge about certificates in Java than me and wants to implement this, a pull request would be greatly appreciated.
wolverineks commentedon Dec 16, 2014
You can find the config in storage/emulated/0/Android/data/data/com.nutomic.syncthingandroid/files/config.xml
at the bottom change tls=true -> tls=false
Support in-app editing of folder's ignore list items (fixes syncthing#19