On Fri, 2015-07-17 at 13:35 -0400, Dan Winship wrote:
.. and the server is returning 500 rather than 401. Which it really shouldn't do
Yeah, the 500 is breaking it on GNOME 3.10 now. I'll have to register a bug against ownCloud for that. But, before I upgraded, it was returning a 401 and was working correctly on GNOME 3.8 - 3.12, but not 3.14/3.16 (with the same code).
let msg = Soup.Message.new("GET", this.owncloudUrl);
let auth_mgr = httpSession.get_feature(Soup.TYPE_AUTH_MANAGER);
let auth = Soup.Auth.new(Soup.TYPE_AUTH_BASIC, msg, "Basic realm=dummy");
auth_mgr.use_auth(auth);
I just get errors like this:
(gnome-shell:4628): Gjs-WARNING **: JS ERROR: Error: Expected
type GType for Argument 'type' but got type 'undefined'
It seems that neither Soup.TYPE_AUTH_MANAGER or Soup.TYPE_AUTH_BASIC are
defined.
Attachment:
signature.asc
Description: This is a digitally signed message part