List:Eventum Development« Previous MessageNext Message »
From:Robbert-Jan Roos Date:March 24 2010 5:34pm
Subject:[rj@base.nl: Patch xmlrpc.php]
View as plain text  
Hi,

We're running eventum from the "trunk" (what's it called in bazaar?).
The xmlrpc.php script is broken. It will print a warning:

<b>Warning</b>:  base64_encode() expects parameter 1 to b e string,
array given in
<b>/var/www/eventum.realworks.nl/eventum-trunk/htdocs/rpc/xmlrpc.php</b>
on line <b>192</b><br />.

It will break a java-client useing xmlrpc and probably others.

See attachment for workaround (diff against latest version from
bazaar)

Regards,
Robbert-Jan Roos

=== modified file 'htdocs/rpc/xmlrpc.php'
--- htdocs/rpc/xmlrpc.php       2010-01-21 15:34:01 +0000
+++ htdocs/rpc/xmlrpc.php       2010-03-18 13:52:41 +0000
@@ -186,7 +186,11 @@
 
     $res = Issue::getDetails($issue_id);
     foreach ($res as $k => $v) {
-        $res[$k] = base64_encode($v);
+               if (is_array($v)) {
+                       unset($res[$k]);
+               } else {
+                       $res[$k] = base64_encode($v);
+               }
     }
     if (empty($res)) {
         return new XML_RPC_Response(0, $XML_RPC_erruser+1, "Issue #$issue_id could not be
found");



Thread
[rj@base.nl: Patch xmlrpc.php]Robbert-Jan Roos24 Mar
  • Re: [rj@base.nl: Patch xmlrpc.php]Elan Ruusamäe10 Apr