ownDrop
ownDrop copied to clipboard
401 unauthorized upon dropping
hi looks like owndrop is no longer maintained? nevertheless I'd like to report that with Owncloud 9.1.0 it is not working as it says "401 unauthorized". User/Password/Url is copied form PW Manager/Browser and thus should be fine.
STDOUT looks like this (URL and filename replaced with ****):
2016-09-08 21:20:56.316 ownDrop[83203:297160] Upload Error: Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: unauthorized (401)" UserInfo={NSUnderlyingError=0x7f84a279e150 {Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: application/xml" UserInfo={com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x7f84a2636d00> { URL: https://cloud.*****//remote.php/webdav/****.pdf } { status code: 401, headers {
"Cache-Control" = "no-store, no-cache, must-revalidate, post-check=0, pre-check=0";
Connection = "Keep-Alive";
"Content-Length" = 234;
"Content-Security-Policy" = "default-src 'none';";
"Content-Type" = "application/xml; charset=utf-8";
Date = "Thu, 08 Sep 2016 19:20:56 GMT";
Expires = "Thu, 19 Nov 1981 08:52:00 GMT";
"Keep-Alive" = "timeout=15, max=99";
Pragma = "no-cache";
Server = Apache;
"Set-Cookie" = "oc3e48f79a10=b3hssaci6rrdguse8t30nmimb6; path=/; secure; HttpOnly";
"Strict-Transport-Security" = "max-age=15768000";
"Www-Authenticate" = "Basic realm=\"ownCloud\"";
"X-Content-Type-Options" = nosniff;
"X-Download-Options" = noopen;
"X-Frame-Options" = Sameorigin;
"X-Permitted-Cross-Domain-Policies" = none;
"X-Powered-By" = "PHP/5.6.24-pl0-gentoo";
"X-Robots-Tag" = none;
"X-XSS-Protection" = "1; mode=block";
} }, NSErrorFailingURLKey=https://cloud.*****//remote.php/webdav/****.pdf, com.alamofire.serialization.response.error.data=<3c3f786d 6c207665 7273696f 6e3d2231 2e302220 656e636f 64696e67 3d227574 662d3822 3f3e0a3c 643a6572 726f7220 786d6c6e 733a643d 22444156 3a222078 6d6c6e73 3a733d22 68747470 3a2f2f73 61627265 6461762e 6f72672f 6e73223e 0a20203c 733a6578 63657074 696f6e3e 53616272 655c4441 565c4578 63657074 696f6e5c 4e6f7441 75746865 6e746963 61746564 3c2f733a 65786365 7074696f 6e3e0a20 203c733a 6d657373 6167653e 55736572 6e616d65 206f7220 70617373 776f7264 20776173 20696e63 6f727265 63743c2f 733a6d65 73736167 653e0a3c 2f643a65 72726f72 3e0a>, NSLocalizedDescription=Request failed: unacceptable content-type: application/xml}}, com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x7f84a2636d00> { URL: https://cloud.*****//remote.php/webdav/****.pdf } { status code: 401, headers {
"Cache-Control" = "no-store, no-cache, must-revalidate, post-check=0, pre-check=0";
Connection = "Keep-Alive";
"Content-Length" = 234;
"Content-Security-Policy" = "default-src 'none';";
"Content-Type" = "application/xml; charset=utf-8";
Date = "Thu, 08 Sep 2016 19:20:56 GMT";
Expires = "Thu, 19 Nov 1981 08:52:00 GMT";
"Keep-Alive" = "timeout=15, max=99";
Pragma = "no-cache";
Server = Apache;
"Set-Cookie" = "oc3e48f79a10=b3hssaci6rrdguse8t30nmimb6; path=/; secure; HttpOnly";
"Strict-Transport-Security" = "max-age=15768000";
"Www-Authenticate" = "Basic realm=\"ownCloud\"";
"X-Content-Type-Options" = nosniff;
"X-Download-Options" = noopen;
"X-Frame-Options" = Sameorigin;
"X-Permitted-Cross-Domain-Policies" = none;
"X-Powered-By" = "PHP/5.6.24-pl0-gentoo";
"X-Robots-Tag" = none;
"X-XSS-Protection" = "1; mode=block";
} }, NSErrorFailingURLKey=https://cloud.*****//remote.php/webdav/****.pdf, com.alamofire.serialization.response.error.data=<3c3f786d 6c207665 7273696f 6e3d2231 2e302220 656e636f 64696e67 3d227574 662d3822 3f3e0a3c 643a6572 726f7220 786d6c6e 733a643d 22444156 3a222078 6d6c6e73 3a733d22 68747470 3a2f2f73 61627265 6461762e 6f72672f 6e73223e 0a20203c 733a6578 63657074 696f6e3e 53616272 655c4441 565c4578 63657074 696f6e5c 4e6f7441 75746865 6e746963 61746564 3c2f733a 65786365 7074696f 6e3e0a20 203c733a 6d657373 6167653e 55736572 6e616d65 206f7220 70617373 776f7264 20776173 20696e63 6f727265 63743c2f 733a6d65 73736167 653e0a3c 2f643a65 72726f72 3e0a>, NSLocalizedDescription=Request failed: unauthorized (401)}
Maybe OC 9 is not supported as last commit here is from 2014? Cheers,
Clearly not maintained, but +1. This problem has made ownDrop nearly unusable, despite years of stability. Could be a straightforward fix, I just don't know the platform at all.
I don't have an ownCloud instance setup anymore, unfortunately. I'm afraid I can't really fix this without.
Would a nextcloud work? I switched from own to nextcloud. Generally they were pretty compatible as nextcloud is a fork. No idea if this is still true or if they deviate too much meanwhile. I can spin up a cloud vm with nextcloud running and grant access to you.. I have this automated. For NextDrop ;-)
Other question @Leandros: I see no license header in your sources - copyright only. Is it allowed to fork your code?
Code is GPL, as stated.