[Laszlo-dev] For Review: Change 20080703-hqm-j Summary: fix for SOLO POST bug

Henry Minsky henry.minsky at gmail.com
Thu Jul 3 10:21:56 PDT 2008


Change 20080703-hqm-j by hqm at badtzmaru.home on 2008-07-03 13:15:44 EDT
     in /Users/hqm/openlaszlo/trunk4
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: fix for SOLO POST bug

New Features:

Bugs Fixed: LPP-6586

Technical Reviewer: max
QA Reviewer: pbr
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:

+ The code in LZHTTPDataProvider was sending all POST data through
LZHTTPLoader API, but SWF8 cannot really post raw data in SOLO mode,
it treats it like XML and will escape '&' and '<' chars.

Fix is to add a flag, "hasquerydata", that is set as an option of the  
LzHTTPLoader,
to give it a hint as to how to POST the data. If it is query data,  
send it using the
Flash LoadVars.sendAndLoad API. If it is "raw", send it using the  
XML.sendAndLoad (which
is better than nothing).

+ fixed regression test to more carefully look at echoed data from  
server

Tests:

test/lfc/data/alldata.lzx (swf, dhtml)
calendar (solo,proxied)
amazon (solo swf,proxied)


Files:
A      test/lfc/data/echobody.jsp
M      test/lfc/data/testgetmethod.lzx
M      test/lfc/data/testgetmethodsolo.lzx
M      test/lfc/data/testpostmethod.lzx
M      test/lfc/data/testsetheaders-solo.lzx
M      test/lfc/data/testpostmethodsolo.lzx
M      WEB-INF/lps/lfc/kernel/swf/LzLoader.lzs
M      WEB-INF/lps/lfc/kernel/swf/LzLoadQueue.as
M      WEB-INF/lps/lfc/kernel/swf/LzHTTPLoader.as
M      WEB-INF/lps/lfc/data/LzHTTPDataProvider.lzs
M      WEB-INF/lps/lfc/data/LzDataset.lzs


Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20080703-hqm-j.tar


More information about the Laszlo-dev mailing list