After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 309980 - MetaWeblog.uploadImage should use <base64> not <string>
MetaWeblog.uploadImage should use <base64> not <string>
Status: RESOLVED FIXED
Product: gnome-blog
Classification: Other
Component: Blog Applet
0.8
Other All
: Normal normal
: ---
Assigned To: GNOME blog maintainers
GNOME blog maintainers
Depends on:
Blocks:
 
 
Reported: 2005-07-11 00:12 UTC by Matthew Good
Modified: 2010-03-04 20:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fixes MetaWeblog image upload by changing data encoding to binary. (835 bytes, patch)
2010-03-04 20:16 UTC, Tommi Asiala
none Details | Review

Description Matthew Good 2005-07-11 00:12:48 UTC
Please describe the problem:


Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Matthew Good 2005-07-11 00:18:43 UTC
Oops, sorry about the blank message, I slipped and hit enter.

The MetaWeblog.uploadImage implementation sends the content as a <string>
containing the base64-encoded content of the image, rather than the XML-RPC type
of <base64> that should be used.  This causes problems for my blog which expects
the content to be in a <base64> type.

To send the right type use:
 content['bits'] = xmlrpclib.Binary(file_contents)
Comment 2 packz 2008-03-21 19:15:21 UTC
I confirm this bug: on lifetype system (using metaweblog api) the images are not encoded correctly. With the change indicated in the previous comment (to be applied in the file MetaWeblog.py) all works fine.
Comment 3 Tommi Asiala 2010-03-04 19:56:22 UTC
Matthew's fix works for me with Wordpress.
Comment 4 Tommi Asiala 2010-03-04 20:16:42 UTC
Created attachment 155260 [details] [review]
Fixes MetaWeblog image upload by changing data encoding to binary.