Author: max
Date: 2008-03-05 11:32:11 -0800 (Wed, 05 Mar 2008)
New Revision: 8179

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataset.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/data/LzHTTPDataProvider.lzs
   openlaszlo/trunk/WEB-INF/lps/schema/lfc.lzx
Log:
Change 20080304-maxcarlson-k by [EMAIL PROTECTED] on 2008-03-04 19:57:57 PST
    in /Users/maxcarlson/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Prevent null= argument for proxyless GET requests.

New Features:

Bugs Fixed: LPP-5544 - Prevent null= argument for proxyless GET requests.

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

Documentation:

Release Notes:

Details: lfc.lzx - Prevent warnings for dataset.clientcacheable

LzHTTPDataProvider.lzs - Only append the post body if it exists.

LzDataset.lzs - Add docs for clientcacheable
    

Tests: See LPP-5544



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataset.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataset.lzs 2008-03-05 19:12:06 UTC 
(rev 8178)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataset.lzs 2008-03-05 19:32:11 UTC 
(rev 8179)
@@ -171,6 +171,12 @@
   */
 var cacheable = false;
 
+/** When true, an argument will be added to the request string in the format 
+  * '__lzbc__=1204685840777'.  This is to prevent client caching.
+  * @type Boolean
+  */
+var clientcacheable = true;
+
 /** A string to be appended to the request that
   * the dataset makes. 
   * @type String

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/data/LzHTTPDataProvider.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/data/LzHTTPDataProvider.lzs        
2008-03-05 19:12:06 UTC (rev 8178)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/data/LzHTTPDataProvider.lzs        
2008-03-05 19:32:11 UTC (rev 8179)
@@ -159,12 +159,14 @@
         
         // For GET requests, merge in params data with URL query 
         if (dreq.method == "GET") {
-            if (lzurl.query != null) {
-                lzurl.query = lzurl.query + "&" + postbody;
-            } else {
-                lzurl.query = postbody;
+            if (postbody != null) {
+                if (lzurl.query != null) {
+                    lzurl.query = lzurl.query + "&" + postbody;
+                } else {
+                    lzurl.query = postbody;
+                }
+                postbody = null;
             }
-            postbody = null;
         }
 
         // convert url back to string

Modified: openlaszlo/trunk/WEB-INF/lps/schema/lfc.lzx
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/schema/lfc.lzx 2008-03-05 19:12:06 UTC (rev 
8178)
+++ openlaszlo/trunk/WEB-INF/lps/schema/lfc.lzx 2008-03-05 19:32:11 UTC (rev 
8179)
@@ -404,6 +404,9 @@
        you set this to true. 
   -->
   <attribute name="cacheable" type="boolean"  value="false"/>
+  <!-- When true, an argument will be added to the request string, e.g. 
__lzbc__=1204685840777.  This is to prevent client caching.
+  -->
+  <attribute name="clientcacheable" type="boolean"  value="false"/>
   <!-- The ondata event is received when data arrives -->
   <event name="ondata" />
   <!--  The onerror event is recevied when an error occurs -->


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to