kipi plugin gallery export didn't use cookies

Bug #1154560 reported by Decembry Quentin
6
This bug affects 1 person
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_version=2.11
    uname=user
    password=password
- The server response contains 3 cookies and a GR2PROTO message telling login successful
    Cookies:
        Set-Cookie: g3sid=avq48ujlg28452re1ntiualqh4; expires=xxxxxx GMT; path=/
        Set-Cookie: g3sid=4ae4f6b045458c336699c11b5d749c82b914ce64%7Eavq48ujlg28542re1ntiualqh4; expires=xxxxxx GMT; path=/
        Set-Cookie: g3sid=3a4h2m49v0r4i588q7vgek4q57; expires=xxxxxx GMT; path=/
    #__GR2PROTO__
        status=0
        status_text=Login successful.
        debug_gallery_version=3.0.5 (Daydreaming)
        debug_user=Quentin
        debug_user_type=Gallery_User
        debug_user_already_logged_in=
        server_version=2.15
- The plugin sends a POST request to the server with 2 parameters but without using the Cookies previously received
    cmd=fetch-albums
    protocol_version=2.11
- The server response contains this times 2 cookies and a GR2PROTO message telling that user not logged in (status 202)
    Cookies:
        Set-Cookie: g3sid=r1s6g6pkgpo6f53bevgbthnf82; expires=xxxxxx GMT; path=/
        Set-Cookie: g3sid=44c09bdb25025bec53fdf59b1c1602afb8f9aebe%7Er1s6g6pkgpo6f35bevgbthnf82; expires=xxxxxx GMT; path=/
    #__GR2PROTO__
        status=202
        status_text=Minimum protocol version required: 2.3 - your client's protocol version: 2.11
        debug_gallery_version=3.0.5 (Daydreaming)
        debug_user=guest
        debug_user_type=Gallery_User
        debug_user_already_logged_in=
        server_version=2.15

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
Revision history for this message
Harald Friessnegger (frisi) wrote :

same problem here using gallery 3.0.7, kipi 3.2.0 on kubuntu 12.10, kde 4.10.3
(see https://bugs.kde.org/show_bug.cgi?id=229341#c10)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.