[ php-blog-Bugs-1922509 ] xmlrpc doesn't comply to MetaWeblog API

"SourceForge.net" <[email protected]> Sat, 22 Mar 2008 08:09:26 -0700
Newsgroups gmane.comp.serendipity.trackers
Message-ID <[email protected]>
Bugs item #1922509, was opened at 2008-03-21 13:12
Message generated for change (Comment added) made by nobody
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=542822&aid=1922509&group_id=75065

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Plugins
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Sven Herzberg (herzi)
Assigned to: Nobody/Anonymous (nobody)
Summary: xmlrpc doesn't comply to MetaWeblog API

Initial Comment:
From http://www.xmlrpc.com/metaWeblogApi#metaweblognewmediaobject:

»...
The struct must contain at least three elements, name, type and bits.
...
bits is a base64-encoded binary value containing the content of the object.
...«

S9y doesn't base64_decode() the data before writing. Is this intentioal or a bug? If it is intentional, I can develop a patch to detect base64-decoded data, otherwise I'd only provide a fixing patch. Just tell me which patch you'd like to see.

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2008-03-22 08:09

Message:
Logged In: NO 

Wow, it's been a long time since I wrote the last line of php, just please
tell me if this is okay to write:

if ($decoded = base64_decode ($struct['bits'])) {
    $struct['bits'] = $decoded;
}

Or will I have to split the assignment and the if() into separate lines?

----------------------------------------------------------------------

Comment By: Garvin Hicking (garvinhicking)
Date: 2008-03-22 03:09

Message:
Logged In: YES 
user_id=473563
Originator: NO

Hi!

Hm, I think i've heard from people who successfully can upload images to
s9y - so I wonder if different clients maybe send the data binary?

Either way, a patch would be appreciated - I think it's best if
base64encoded data could be detected?

Regards,
Garvin

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=542822&aid=1922509&group_id=75065

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
php-blog-tracker mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/php-blog-tracker