[mapserver-commits] r7489 - trunk/mapserver/rfc

svn at osgeo.org svn at osgeo.org
Fri Mar 28 15:03:03 EDT 2008


Author: jlacroix
Date: 2008-03-28 15:03:03 -0400 (Fri, 28 Mar 2008)
New Revision: 7489

Modified:
   trunk/mapserver/rfc/ms-rfc-42.txt
Log:
Add Implementation issue section

Modified: trunk/mapserver/rfc/ms-rfc-42.txt
===================================================================
--- trunk/mapserver/rfc/ms-rfc-42.txt	2008-03-27 23:45:51 UTC (rev 7488)
+++ trunk/mapserver/rfc/ms-rfc-42.txt	2008-03-28 19:03:03 UTC (rev 7489)
@@ -55,6 +55,16 @@
 
 
 ==============================================================================
+Implementation Issues
+==============================================================================
+It was pointed out during the RFC review period that passing and storing the cookie data using an "http_cookie_data" metadata is a poor use of MapServer's metadata mechanism.
+
+Since MapServer currently lacks a mechanism to associate application state information to a mapObj, there is currently no better mechanism in place to store the cookie data received from the client and pass it to the rendering code that calls the remote WMS. Due to lack of a better solution, for the time being we will use the "http_cookie_data" metadata as proposed in this RFC, with the knowledge that this is a poor use of metadata and that we as soon as a better mechanism is in place to store and pass application state in a mapObj then this metadata will be deprecated and replaced by this new mechanism. Developers of MapScript applications setting this "http_cookie_data" metadata should be aware of this and be prepared to change their code in future revisions of MapServer. 
+
+Another issue is that no encoding currently is planned to be made with the http_cookie_data metadata. Poorly formated metadata could break the HTTP header of a request. If it is found that Curl doesn't encode the cookie value, only character with a value between 32 and 126 (printable ascii characters) will be allowed.
+
+
+==============================================================================
 Modifications to the Source Code
 ==============================================================================
 
@@ -92,7 +102,7 @@
  cgiutil.c           (read and store the http cookies data in cgiRequestObj)
  maphttp.c           (send cookies with the request via curl option)
  mapows.h            (add http_cookies to httpRequestObj)
- mapserv.c            (store cookies in mapfile metadata)
+ mapserv.c           (store cookies in mapfile metadata)
  mapwmslayer.c       (set cookies in httpRequestObj)
  mapwfslayer.c       (set cookies in httpRequestObj)
 



More information about the mapserver-commits mailing list