Opened 20 years ago

Closed 15 years ago

#481 closed defect (fixed)

Add ability to read/write OGC context files from CGI

Reported by: sdlime Owned by: jmckenna
Priority: high Milestone: 5.4 release
Component: Documentation - MapServer Version: 4.1
Severity: normal Keywords:
Cc: tomkralidis, dmorissette

Description (last modified by dmorissette)

At the moment OGC context files are only accessible via PHP MapScript. Those 
functions are in all version of MapScript though.

Steve

Change History (17)

comment:1 by dmorissette, 20 years ago

Cc: tom.kralidis@… added
FYI for testing I had implemented a (undocumented) request=GetContext mapwms.c
that allows you to retrieve a context for a WMS-based mapfile with a call like:

http://your.server/cgi-bin/mapserv?map=...&SERVICE=WMS&REQUEST=GetContext&VERSION=1.0.0

The VERSION parameter controls the version of context document to return.

BTW, this request returns only the layers with CONNECTIONTYPE WMS at the moment,
but I've had requests from Tom Kralidis for a way to retrieve a context for a
mapfile in which all local layers are also exposed as WMS layers.  This would be
kind of bypassing GetCapabilities so I'm not sure if that's a good idea.

comment:2 by dmorissette, 20 years ago

Cc: morissette@… removed
Component: MapServer CGIWMS Server
Owner: changed from sdlime to mapserverbugs
I have disabled the GetContext in the WMS CGI in 4.1 CVS because it could be
considered a security issue: it could publicly expose the URLs of WMS layers
used (cascaded) by a mapfile.

To re-enable it, set the "wms_getcontext_enabled" web metadata to "1" in your
WMS server's mapfile.

comment:3 by dmorissette, 20 years ago

Component: WMS ServerMapServer CGI

comment:4 by dmorissette, 17 years ago

attachments.mimetype: text/htmltext/plain

comment:5 by dmorissette, 17 years ago

attachments.mimetype: text/htmltext/plain

comment:6 by dmorissette, 17 years ago

attachments.mimetype: text/htmltext/plain

comment:7 by dmorissette, 17 years ago

attachments.mimetype: text/htmltext/plain

comment:8 by dmorissette, 17 years ago

attachments.description: descdesc... SPAM...

comment:9 by dmorissette, 17 years ago

attachments.description: descSPAM
attachments.isobsolete: 01

comment:10 by dmorissette, 17 years ago

attachments.description: desc... SPAM...SPAM
attachments.isobsolete: 01

comment:11 by dmorissette, 17 years ago

attachments.description: descSPAM
attachments.isobsolete: 01

comment:12 by dmorissette, 17 years ago

attachments.description: descSPAM
attachments.isobsolete: 01

comment:13 by tomkralidis, 16 years ago

Cc: tom.kralidis@… added; tom.kralidis@… removed

Status on this one? Should we document this one -- in WMS Server or Map Context or both?

comment:14 by tomkralidis, 16 years ago

Cc: tomkralidis dmorissette added; tom.kralidis@… removed

bump...see comment:13

comment:15 by dmorissette, 16 years ago

Component: MapServer CGIMapServer Documentation
Description: modified (diff)
Milestone: 5.4 release
Owner: changed from mapserverbugs to jmckenna

moving to Docs component. I'll let you (Tom) and Jeff sort out where that should go in docs.

comment:16 by tomkralidis, 16 years ago

Suggest this be documented in Map Context howto only. Jeff: any comment?

comment:17 by tomkralidis, 15 years ago

Resolution: fixed
Status: newclosed

Documented in r8493.

Note: See TracTickets for help on using tickets.