ownDrop icon indicating copy to clipboard operation
ownDrop copied to clipboard

URL in settings should not require http

Open eppfel opened this issue 9 years ago • 2 comments

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}

eppfel avatar Aug 23 '15 08:08 eppfel

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.

ovidiulixandru avatar Oct 14 '15 11:10 ovidiulixandru

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.

eppfel avatar Oct 14 '15 13:10 eppfel