kipi plugin gallery export didn't use cookies
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kipi-plugins (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Problem : Softwares using the kipi plugin gallery export fail to export to Gallery3 server
Reason could be because kipi plugin gallery export doesn't use correctly the cookies
I found this bug while trying to export pictures from Digikam (2.5.0 - 12.04) to Gallery3 (3.0.5) freshly installed with module Gallery Remote Protocol correctly installed, activated and patches applied as required. Digikam, as other software like Gwenview, use the kipi plugin gallery export to perform this operation.
The first things that I could observe is that I receive an error "Failed to list albums" ("Impossible de lister les albums" in french).
To better understand the error, I decided to follow the TCP stream with Wireshark.
Here are my observations:
- The plugin sends a POST request to the server with 4 parameters
cmd=login
protocol_
uname=user
password=
- The server response contains 3 cookies and a GR2PROTO message telling login successful
Cookies:
Set-Cookie: g3sid=avq48ujlg
Set-Cookie: g3sid=4ae4f6b04
Set-Cookie: g3sid=3a4h2m49v
#__GR2PROTO__
status=0
- The plugin sends a POST request to the server with 2 parameters but without using the Cookies previously received
cmd=
protocol_
- The server response contains this times 2 cookies and a GR2PROTO message telling that user not logged in (status 202)
Cookies:
Set-Cookie: g3sid=r1s6g6pkg
Set-Cookie: g3sid=44c09bdb2
#__GR2PROTO__
status=202
I tested with the following configurations
- Ubuntu 12.04.2 LTS + Gnome + Digikam 4:2.5.0-1ubuntu2 + kipi-plugins 4:2.5.0-1ubuntu2
- Ubuntu 12.04.2 LTS + Gnome + Digikam 4:2.8.0-0ubuntu1 + kipi-plugins 4:2.8.0-0ubuntu1
- Ubuntu 13.04 + Gnome + Digikam 4:3.0.0-0ubuntu3 + kipi-plugins 4:3.0.0-0ubuntu3
- Ubuntu 13.04 + KDE + Digikam 4:3.0.0-0ubuntu3 + kipi-plugins 4:3.0.0-0ubuntu3
None of the above configurations resolv this problem. I got the same problem with Gwenview using this kipi plugin.
It can also be tested on Ubuntu 12.04.2 LTS + KDE to see if the X environment could be the problem.
description: | updated |
same problem here using gallery 3.0.7, kipi 3.2.0 on kubuntu 12.10, kde 4.10.3 /bugs.kde. org/show_ bug.cgi? id=229341# c10)
(see https:/