ownDrop
ownDrop copied to clipboard
URL in settings should not require http
I just configured owdrop for the first time and did not enter the url with http:// but just the domain. I think it would be easy to spot this and change it or at least give the user any feedback about a failed login. I only found it the console:
23.08.15 09:51:30,626 ownDrop[52940]: Upload Error:
Error Domain=NSURLErrorDomain Code=-1002 "Der Vorgang konnte nicht abgeschlossen werden. (NSURLErrorDomain-Fehler -1002.)"
UserInfo=0x60800026efc0 {NSErrorFailingURLStringKey=example.org/remote.php/webdav/MT4_4_FarbeImKontext2.zip,
NSUnderlyingError=0x608000254880 "Der Vorgang konnte nicht abgeschlossen werden. (kCFErrorDomainCFNetwork-Fehler -1002.)",
NSErrorFailingURLKey=example.org/remote.php/webdav/MT4_4_FarbeImKontext2.zip}
I think it should require an explicit protocol in the URL and not guess. If the program guesses, it should sniff out the correct protocol as well (plain HTTP or TLS), not juts assume it's HTTP, which just complicates things.
The improvement would be to show an error if the user does not enter the protocol and leave it there.
A warning would be fine to fix this issue. Validation would be nice to have. And best would be to expect https and than fall back to http, of course with validation included.