Bug 153758 - FlickrUploader fails to upload photos whose caption contains accented characters or a trailing space
Summary: FlickrUploader fails to upload photos whose caption contains accented charact...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-Flickr (show other bugs)
Version: 5.6.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-10 01:11 UTC by Bernardo Rechea
Modified: 2018-03-23 12:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 0.1.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernardo Rechea 2007-12-10 01:11:55 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    SuSE RPMs
OS:                Linux

When I attempt to upload to flickr a picture whose caption contains accented characters (e.g., a caption in Spanish), I get the following error message:

    Error Occurred: Invalid signature
    We can not proceed further

The same error occurs when the caption has a trailing space.

I think this is an issue on FlickrUploadr's side because the same caption can be entered without problems on flickr's web interface.
Comment 1 Thomas Sperre 2008-02-24 19:08:37 UTC
I can confirm that this happens. I am using digikam 0.9.2-final (KDE 3.5.8) on kubuntu 7.10 (64  bit), Kipi Library version 0.1.5. 

I have also seen that there is a similar problem using other non-ascii characters such as æåø (Norwegian is great!) 

This bug is really annoying to me since I use both accented characters and æøå (Portuguese and Norwegian). In fact I guess that might be one of the worst 2- language combinations in the latin alphabet languages. 
Comment 2 Ren 2008-03-02 01:39:08 UTC
I can confirm this problem too. I have the same error when a tag contains french accents (é, è etc.).

Very annoying for users who use a language with accents !

Digikam 0.9.2-final (0.9.2-2ubuntu2)
Kipi Library 0.1.5 (Kipi-plugins 0.1.4-1build1, libkipi0 0.1.5-2)
Comment 3 Thomas Sperre 2008-03-09 05:40:16 UTC
I have done some cross-checking against kflickr: kflickr will successfully upload pictures to flickr even if the name(name, caption = filename to be precise) contains wonderful characters like æåø. 

In other words, it appears that Flickr will accept these characters, the limitation is in the kip-plugin flickruploader code somewhere.

(and by the way, kflickr is no good replacement since all the tags, comments, etc is lost). 
Comment 4 caulier.gilles 2008-05-21 08:25:46 UTC
vardhman,

I can reproduce the problem easily here. I need your help to solve this problem in source code.

To reproduce the dysfunction, i just set a new tag using accentuate char before to upload and image from digiKam. To reduce multiple conflicts from source code, the image do not have tags, comments, and Exif/IPTC metadata in digiKam.

Look the screenshot here:

http://digikam3rdparty.free.fr/Screenshots/temp/flickrexport_bko_153758.png

Try to hack this problem, i have seen this point :

1/ Look the url form reported in the console. In my example, the new tag "idée" is not encoded properlly in the url :

digikam: Add photo query: http://www.flickr.com/services/upload/?auth_token=1085727-f28413d94cf8f0fd&api_key=49d585bafa0758cb5c58ab67198bf632&is_public=0&is_family=0&is_friend=0&tags=id�e&title=photo-000048.jpg&api_sig=80a0aea8d2765e7011c3e9ad821d3225

The from "&tags=id�e" do not repect the url encoding. KURL API can help us here, for ex. to use KURL::encode_string() or to use KURL class as well to hot the flickr url to query web site.

2/ the second point is releavant of MPForm class witch not support UTF-8 as well like a data container. It very well explained in this bugzilla entry:

http://bugs.kde.org/show_bug.cgi?id=155270

Vardhman, please give me your viewpoint. 

Thanks in advance

Gilles Caulier


Comment 5 Lionel Besson 2008-05-21 09:24:45 UTC
This bug is particularly annoying in conjunction with bug http://bugs.kde.org/show_bug.cgi?id=153207
When having photos with non-ascii tags saved as IPTC metadata, and since the "Use host application tags" deselection is not working properly, once need to erase the metadata first for upload to be successfull.
Comment 6 caulier.gilles 2008-05-21 11:06:25 UTC
SVN commit 810651 by cgilles:

kipi-plugins from KDE3 branch : FlickrExport tool : UTF-8 support
- Use KURL to host addPhoto url
- new method to compute MD5 signature based on KURL.

I have tested to upload photo using accentuate char from Tags or comments. Now all work fine.

BUGS: 153758
CCBUGS: 155270


 M  +41 -23    flickrtalker.cpp  
 M  +3 -0      flickrtalker.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=810651