[mapserver-users] Change QueryMap parameter via URL

Frank Koormann frank.koormann@intevation.de
Wed, 13 Mar 2002 09:14:36 +0100


--CE+1k2dSO48ffgeK
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

Horst,

* Düster Horst (Horst.Duester@bd.so.ch) [020312 17:06]:
> Hi all
> I try to change the map file parameter QUERYMAP SIZE via URL with
> ...&mode=itemquerymap&map_querymap_size=600+600&... and MapServer 3.5
> but ist doesn't work. MapServer hangsup until Server timeout. What changed
> from 3.4 to 3.5, because the same routine work fine with 3.4??

Strange enough, I can't find this feature in my ancient v3.4 sources.
However, the v3.5 sources have an endless loop there.
Just filed a bug report, you may apply the attached patch to fix this 
immediately

Regards,

        Frank

-- 
Frank Koormann                             <frank.koormann@intevation.de>
 Professional Service around Free Software       (http://intevation.net/)
 FreeGIS Project                                 (http://freegis.org/)

--CE+1k2dSO48ffgeK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="mapserver-3.5_mapfile.c.patch"

--- mapfile.c.org       Wed Mar 13 09:05:22 2002
+++ mapfile.c   Wed Mar 13 09:05:35 2002
@@ -2669,7 +2669,6 @@
 {
   int red, green, blue;
 
-  for(;;) {
     switch(msyylex()) {
     case(COLOR):
       msyystate = 2; msyystring = value;
@@ -2693,7 +2692,6 @@
       if((querymap->style = getSymbol(3,
MS_NORMAL,MS_HILITE,MS_SELECTED)) == -1) return;
       break;      
     }
-  }
 
   return;
 }

--CE+1k2dSO48ffgeK--