[MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

Jeff McKenna jmckenna at gatewaygeomatics.com
Thu May 4 10:51:10 PDT 2023


Chris can you paste your latest mapfile at https://pastebin.com/ and 
paste the link here for everyone?  (and for any future mailing list 
messages, please use that method, for sharing your mapfile and config files)

thanks,

-jeff



On 2023-05-04 2:45 p.m., Chris Cantey wrote:
> We were also a little concerned about web>template. We didn't see 
> anywhere what exactly we were supposed to put in the TEMPLATE document. 
> its basically the same html document as 
> https://dev.gis.lcc.mn.gov/tmp/mapserver/ 
> <https://dev.gis.lcc.mn.gov/tmp/mapserver/> but with <!-- MapServer 
> Template --> on top.
> 
> CC
> 
> On Thu, May 4, 2023 at 12:32 PM Chris Cantey <cantey0701 at gmail.com 
> <mailto:cantey0701 at gmail.com>> wrote:
> 
>     I need that t-shirt! The quotes are in the mapfile, I think gmail
>     just hyperlinked the string.
> 
>     I am kind of testing 2 ways: Using the browser(a few methods there),
>     using linux: mapserv
>     "QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map"
> 
>     When I do that, I still get a validation error:
> 
>     [Thu May  4 12:18:06 2023].428388 loadParams() QUERY_STRING:
>     map=/home/map=home/gis/tmp/mapserver/mapserver.map
>     [Thu May  4 12:18:06 2023].428506 msCGILoadMap(): Web application
>     error. CGI variable "map" fails to validate.
> 
>     I'm wondering on the front end if there's a projection issue, I see
>     green network activity: https://dev.gis.lcc.mn.gov/tmp/mapserver/
>     <https://dev.gis.lcc.mn.gov/tmp/mapserver/>
> 
>     On Thu, May 4, 2023 at 12:29 PM Jeff McKenna
>     <jmckenna at gatewaygeomatics.com
>     <mailto:jmckenna at gatewaygeomatics.com>> wrote:
> 
>         Also, your onlineresource is missing quotes, such as:
> 
>         "wms_onlineresource"
>         "https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map <https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map>"
> 
> 
> 
> 
>         -jeff
> 
> 
> 
>         -- 
>         Jeff McKenna
>         GatewayGeo: Developers of MS4W, MapServer Consulting and Training
>         co-founder of FOSS4G
>         http://gatewaygeo.com/ <http://gatewaygeo.com/>
> 
> 
> 
>         On 2023-05-04 2:13 p.m., Jeff McKenna wrote:
>          > Thanks.  I think you solved any validation issues ( this
>         request would
>          > not validate, for example :
>          >
>         https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map <https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map> )   so it's something else, very minor likely (I've got that t-shirt too, ha)
>          >
>          > -jeff
>          >
>          >
>          >
>          > On 2023-05-04 2:00 p.m., Chris Cantey wrote:
>          >> Thanks, Jeff.. I found that out, thanks.
>          >>
>          >> I will work down from your points.
>          >>
>          >> Besc,
>          >>
>          >> On Thu, May 4, 2023 at 11:57 AM Jeff McKenna
>          >> <jmckenna at gatewaygeomatics.com
>         <mailto:jmckenna at gatewaygeomatics.com>
>         <mailto:jmckenna at gatewaygeomatics.com
>         <mailto:jmckenna at gatewaygeomatics.com>>>
>          >> wrote:
>          >>
>          >>     Also note, that the regular expression "^" trick applies
>         to the
>          >>     MS_MAP_PATTERN in the config file (not the MS_ERRORFILE
>         path in the
>          >>     mapfile).
>          >>
>          >>
>          >>     Thanks for using MapServer Chris,
>          >>
>          >>     -jeff
>          >>
>          >>
>          >>
>          >>     --     Jeff McKenna
>          >>     GatewayGeo: Developers of MS4W, MapServer Consulting and
>         Training
>          >>     co-founder of FOSS4G
>          >> http://gatewaygeo.com/ <http://gatewaygeo.com/>
>         <http://gatewaygeo.com/ <http://gatewaygeo.com/>>
>          >>
>          >>
>          >>     On 2023-05-04 1:48 p.m., Jeff McKenna wrote:
>          >>      > More points for your consideration:
>          >>      >
>          >>      > - make sure all layers have a PROJECTION object
>          >>      > - remove any old references to the
>         (non-standard/non-existing)
>          >>      > EPSG:900913, replace with EPSG:3857  (see
>         https://epsg.io/3857 <https://epsg.io/3857>
>          >>     <https://epsg.io/3857 <https://epsg.io/3857>> )
>          >>      > - remove all warnings from your GetCapabilities
>         response, every
>          >>     single
>          >>      > warning, there should be no warnings in the response,
>         before you
>          >>     move to
>          >>      > testing GetMap requests
>          >>      > - if you have PostGIS/db connections, consider
>         setting EXTENT
>          >> at the
>          >>      > layer-level, to improve speed for your clients (review
>          >>     optimizations at
>          >>      > https://mapserver.org/optimization/vector.html
>         <https://mapserver.org/optimization/vector.html>
>          >>     <https://mapserver.org/optimization/vector.html
>         <https://mapserver.org/optimization/vector.html>> )
>          >>      > - during GetMap testing, comment any TEMPLATE params
>         in mapfile
>          >>      >
>          >>      >
>          >>      > -jeff
>          >>      >
>          >>      >
>          >>      >
>          >>      >
>          >>
>          >>     _______________________________________________
>          >>     MapServer-users mailing list
>          >> MapServer-users at lists.osgeo.org
>         <mailto:MapServer-users at lists.osgeo.org>
>          >> <mailto:MapServer-users at lists.osgeo.org
>         <mailto:MapServer-users at lists.osgeo.org>>
>          >> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>         <https://lists.osgeo.org/mailman/listinfo/mapserver-users>
>          >>    
>         <https://lists.osgeo.org/mailman/listinfo/mapserver-users
>         <https://lists.osgeo.org/mailman/listinfo/mapserver-users>>
>          >>
>          >>
>          >>
>          >> --
>          >> Chris Cantey
>          >> geo-odyssey.com <http://geo-odyssey.com>
>         <http://geo-odyssey.com <http://geo-odyssey.com>>
>          >
> 
>         _______________________________________________
>         MapServer-users mailing list
>         MapServer-users at lists.osgeo.org
>         <mailto:MapServer-users at lists.osgeo.org>
>         https://lists.osgeo.org/mailman/listinfo/mapserver-users
>         <https://lists.osgeo.org/mailman/listinfo/mapserver-users>
> 
> 
> 
>     -- 
>     Chris Cantey
>     geo-odyssey.com <http://geo-odyssey.com>
> 
> 
> 
> -- 
> Chris Cantey
> geo-odyssey.com <http://geo-odyssey.com>

-- 
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




More information about the MapServer-users mailing list