/srv/irclogs.ubuntu.com/2013/11/20/#ubuntuone.txt

JoseExpositoHi! I'm doing a simple GET request to "/api/file_storage/v1/~/Ubuntu%20One" from Qt (using O2 library https://github.com/pipacs/o2) and I'm getting a "Host requires authentication" error. However, when I make the same request to other URLs, like "/api/file_storage/v1/volumes/" or "/api/file_storage/v1/public_files" everything works properly. Does anyone know what could happen?16:56
dobeykarni, beuno: ^^ maybe you know, or who best to ping about that one?16:58
karnihrm16:59
karniI would need to relay that to beuno, I don't know the reason. I'm assuming all request are signed (both the working ones and the one that is not working).17:01
beunoJoseExposito, maybe the %20 isn't being properly handled?17:06
JoseExpositokarni: Yes, both request are signed. Actually to test the request I'm just changing the URL in my source code and all the request are working but the request like"/api/file_storage/v1/~/..." aren't working17:07
dobeyalmost certainly the %2017:08
JoseExpositodobey: Same error without %20 :S17:12
karniholestly %20 looks fine to me. JoseExposito, you tried with a different path? like creating a synced folder and fetching /~/foo ?17:13
karni*honestly17:14
karniJoseExposito: I'm asking because I never talked to the API from Qt17:14
karniso I'm not familiar with possible issues that may be already known17:14
=== karni is now known as karni-afk
=== karni-afk is now known as karni
JoseExpositokarni: Good idea, with my brand new foo volume ithis request is working: https://one.ubuntu.com/api/file_storage/v1/~/foo :D17:18
JoseExpositoprobably it is a problem with the %20 (all my volumes had a %20)17:18
JoseExpositothank you! I'm investigating the problem17:18
karniJoseExposito: :)17:19
karniJoseExposito: Might be a problem within the Qt library17:19
karnior elsewhere, but the API should accept such URL I would say.17:20
JoseExpositokarni: Maybe... Because including "?include_children=true" to the URL causes the same error. The library doesn't look very popular, but it was very easy to deploy in phones... I think that I have to look for a new one...17:27
karniJoseExposito: oh yes. that should work with no problem. looks like a bug in the lib.17:38
=== mandel_away is now known as mandel_
dobeywell, the %20 would be a problem if the signature generation is handling encoded characters wrong18:04
dobeywhich is a very common problem with oauth client implementations18:05
JoseExpositokarni, dobey: I have switched to https://github.com/sirikata/liboauthcpp and now it works like a charm. Thank you very much for your help!!18:24
karniJoseExposito: great! Thanks for letting us know :)18:24
karnidobey: Yes18:24

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!