[Laszlo-checkins] r11982 - in openlaszlo/trunk: WEB-INF/lps/server/src/org/openlaszlo/test/xmlrpc lps/components/rpc/library test/rpc/xmlrpc

hqm@openlaszlo.org hqm at openlaszlo.org
Fri Dec 5 08:31:15 PST 2008


Author: hqm
Date: 2008-12-05 08:31:11 -0800 (Fri, 05 Dec 2008)
New Revision: 11982

Added:
   openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/test/xmlrpc/Ghost.java
   openlaszlo/trunk/test/rpc/xmlrpc/ghost.lzx
   openlaszlo/trunk/test/rpc/xmlrpc/ghost.sh
Modified:
   openlaszlo/trunk/lps/components/rpc/library/xmlrpc.js
Log:
Change 20081205-hqm-G by hqm at badtzmaru.home on 2008-12-05 11:25:42 EST
    in /Users/hqm/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: fix data type encoding in swf9 XMLRPC

New Features:

Bugs Fixed: LPP-7430

Technical Reviewer: promanik
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
    
+ code in xmlrpc.js was incorrectly encoding the params when it creates an XMLRPC
request message. 

Since I added the XML RPC message encoding library, the params passed in should
not be being XML-escaped first. The XMLRPCMessage class takes care of escaping any
string args that need it.

Tests:

run ghost.sh to make the ghost XML RPC test case service
run ghost.lzx in swf9, get no error, see test string echoed back




Added: openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/test/xmlrpc/Ghost.java


Property changes on: openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/test/xmlrpc/Ghost.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Modified: openlaszlo/trunk/lps/components/rpc/library/xmlrpc.js
===================================================================
--- openlaszlo/trunk/lps/components/rpc/library/xmlrpc.js	2008-12-05 16:30:25 UTC (rev 11981)
+++ openlaszlo/trunk/lps/components/rpc/library/xmlrpc.js	2008-12-05 16:31:11 UTC (rev 11982)
@@ -70,7 +70,7 @@
     var methodname = opts['methodname'];
     var mesg = new XMLRPCMessage(methodname);
     for (var i=0; i < args.length; i++) {
-        mesg.addParameter(lz.Browser.xmlEscape(args[i]));
+        mesg.addParameter(args[i]);
     }
 
     var requestObj = new LzRPCDataRequest(this);

Added: openlaszlo/trunk/test/rpc/xmlrpc/ghost.lzx


Property changes on: openlaszlo/trunk/test/rpc/xmlrpc/ghost.lzx
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Added: openlaszlo/trunk/test/rpc/xmlrpc/ghost.sh


Property changes on: openlaszlo/trunk/test/rpc/xmlrpc/ghost.sh
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native



More information about the Laszlo-checkins mailing list