Ticket #2747 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

mode=map parameter causes WMS requests to give an error

Reported by: agxs Owned by: dmorissette
Priority: normal Milestone: 5.2.1 release
Component: WMS Server Version: 5.2
Severity: normal Keywords:
Cc:

Description

If a GetCapabilities? request is sent such as:

 http://<hostname>/mapserv?map=<mapfile>&mode=map&REQUEST=GetCapabilities?&service=WMS&version=1.1.1

The following error is returned in 5.2:

mapserv() : Web application error. SERVICE=WMS requested, but that OGC web service is not enabled in this build. Please rebuild MapServer with appropriate options.

This error is not returned in versions previous to 5.2

When the parameter mode=map is removed then the request works correctly.

Ticket created upon request by Daniel Morissette on #mapserver on freenode.

Change History

Changed 5 years ago by dmorissette

  • owner changed from mapserverbugs to dmorissette
  • status changed from new to assigned
  • milestone set to 5.2.1 release

This is probably a side-effect of the work started in ticket #2531 to add mode=ows. We need to fix this to return a more meaningful error message.

Changed 5 years ago by dmorissette

There were redundant tests in mapserv.c checking if service was passed but not caught by msOWSDispatch() and producing this error message if mode != ows was passed.

I have removed the tests since each msXXXDispatch function already reports its own error already of that service is not compiled in.

Done in SVN trunk r7876.

Still need to backport and retest in 5.2.x branch (tomorrow).

Changed 5 years ago by dmorissette

  • status changed from assigned to closed
  • resolution set to fixed

Backported to branch-5-2 in r7877.

Fixed.

Note: See TracTickets for help on using tickets.