From: Andy S. <an...@ee...> - 2007-01-29 13:15:27
|
True, I just revisited the code and the auth-token is indeed missing in the GR login response. I'll correct this in the next few days. - Andy Stephane Delcroix wrote: > Hi Andy, > > thx again for your support, the code is working fine now. It > only needs some more testing with an older gallery before > going to our f-spot svn. > > one minor problem though... I still don't get any authToken in login. > But I can fetchalbumsprune without the token, and I got the > token in the reply. > It's not an issue for us, since there's always a > fetchalbumsprune after a login, but it should be an issue in > the galleryremote code... > btw, I'll adapt our code to support also a token from login, > just in case it appears one day or another... > > regards > > s > > > On Mon, 2007-01-29 at 13:41 +0100, Andy Staudacher wrote: > > Stephane Delcroix wrote: > > > Great !!! > > > > > > With the remote module 1.0.8, I receive a token. > > > I hope this version (1.0.8) will be the default for galery 2.2 ? > > > > Excellent! > > > > G2.2 ships with a lot of new modules. But because of the modular > > design of g2, users can upgrade the core without upgrading > the remote > > module. So if you have a project website, a FAQ might be in > order to > > point users to using the latest remote module with G2.2. > > > > - Andy > > > > > regards > > > > > > s > > > > > > On Mon, 2007-01-29 at 12:48 +0100, Andy Staudacher wrote: > > > > > Is the reply from gallery 2.2-RC1 "server_version=2.8" ok ? > > > > > > > > Indeed, that's the problem. > > > > You're using the remote module of Gallery 2.1. > > > > You need to get the latest remote module first. > > > > > > > > It should be server version 2,11. > > > > - Andy > > > > > > > > Stephane Delcroix wrote: > > > > > I think this issue is library independant. Some facts > > > that makes me > > > > > think like this: > > > > > - I'm not using the same library as the one reported in the > > > > > forum > > > > > - the repsonse attached to my previous mail is not > > > something parsed > > > > > by any lib, but the raw traffic from tcpdump. > > > > > > > > > > I tried to get an authToken with no-op, but even no-op > > > replies by a > > > > > 500 Error, Authentication failed. > > > > > > > > > > Shouldn't no-op works fine even with non-logged users ? > > > > > Is the reply from gallery 2.2-RC1 "server_version=2.8" ok ? > > > > > Do you need a complete tcpdump log ? With requests > and responses ? > > > > > > > > > > regards, > > > > > > > > > > s > > > > > > > > > > On Mon, 2007-01-29 at 11:27 +0100, Andy Staudacher wrote: > > > > > > Hi Stephane, > > > > > > > > > > > > Yes, the response to the login request should include an > > > > > > auth-token key-value pair. > > > > > > > > > > > > The author of another GR based client application had a > > > > > > similar problem and it turned out to be a problem with the > > > > > > HTTP > > > lib that > > > > > > he was using in his code. > > > > > > See: > > > > > > http://gallery.menalto.com/node/59687#comment-218286 > > > > > > And: > > > > > > > > > > > > > > > http://codex.gallery2.org/index.php/Gallery_Remote:Protocol#3rd_Part > > > > > y_ > > > > > > Client > > > > > > _Software.2FLibraries > > > > > > > > > > > > Please let us know how it goes! > > > > > > > > > > > > Best, > > > > > > - Andy > > > > > > > > > > > > > > > > > > Stephane Delcroix wrote: > > > > > > > Hi all, > > > > > > > > > > > > > > With the release of 2.2-RC1, F-Spot (http://f-spot.org) > > > > > is no longer > > > > > > > able to upload pictures, as reported here > > > > > > > http://bugzilla.gnome.org/show_bug.cgi?id=401471 > > > > > > > > > > > > > > To fix this, I'm trying to add the authToken support to > > > > > the F-Spot > > > > > > > uploader but with very few luck... > > > > > > > > > > > > > > The login command still works, and I was expecting to > > > > > > > receive the authToken from it. > > > > > > > > > > > > > > Here's the answer I got: > > > > > > > ENX@@WOPM]C > > > > > > > $U$HTTP/1.1 200 OK > > > > > > > Date: Mon, 29 Jan 2007 10:01:23 GMT > > > > > > > Server: Apache/2.2.3 (Debian) PHP/4.4.4-8 > > > > > > > X-Powered-By: PHP/4.4.4-8 > > > > > > > Set-Cookie: GALLERYSID=5d34469756f091dd19bbee18ed0ed0aa; > > > > > > > expires=Mon, 19 Feb 2007 10:01:24 GMT; > > > > > path=/~sde/gallery2.2-RC1/; > > > > > > > HttpOnly=1 > > > > > > > Content-Length: 157 > > > > > > > Keep-Alive: timeout=15, max=100 > > > > > > > Connection: Keep-Alive > > > > > > > Content-Type: text/plain; charset=UTF-8 > > > > > > > > > > > > > > #__GR2PROTO__ > > > > > > > server_version=2.8 > > > > > > > debug_core_version=7,17 > > > > > > > debug_module_version=1.0.6 > > > > > > > status=0 > > > > > > > status_text=Login successful. > > > > > > > debug_user=admin > > > > > > > debug_time=0.063s > > > > > > > > > > > > > > > > > > > > > What should I do/ask to receive a valid token ? > > > > > > > > > > > > > > regards > > > > > > > > > > > > > > s > > > > > > > -- > > > > > > > Stephane Delcroix > > > > > > > ste...@de... > > > > > > > > > > > > > > > > > -- > > > > > Stephane Delcroix > > > > > ste...@de... > > > > > -- > Stephane Delcroix > ste...@de... |