[Bug 194357] KBlog generates invalid structured XML-RPC requests for the metaWeblog API

Berend Dekens kde at cyberwizzard.nl
Thu May 28 15:54:34 BST 2009


https://bugs.kde.org/show_bug.cgi?id=194357





--- Comment #1 from Berend Dekens <kde cyberwizzard nl>  2009-05-28 16:54:33 ---
On the topic of invalid markup, in wordpressbuggy.cpp the generated struct
should be enclosed in a <value> element. I reported this on the Bilbo forum as
well as they currently use a forked version of KBlog.

In wordpressbuggy.cpp on line 78 change:
xmlMarkup += "<param><struct>";
into:
xmlMarkup += "<param><value><struct>";

On line 123:
xmlMarkup += "</member></struct></param>";
into:
xmlMarkup += "</member></struct></value></param>";

In line 177:
xmlMarkup += "<param><struct>";
into
xmlMarkup += "<param><value><struct>";

And on line 227:
xmlMarkup += "</member></struct></param>";
into
xmlMarkup += "</member></struct></value></param>";

The resulting XML is now XML-RPC compliant.

This does not solve the category error in the metaWeblog API but since
wordpressbuggy.cpp generates its own XML, it does not seem to share the
functionality that metaweblog.cpp uses. The result is that the WordPress API
generates the correct category syntax while the metaWeblog API does not.

Or should I open a seperate bug report for the suggested fix for
wordpressbuggy.cpp?

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list