Ticket #736 (closed defect: fixed)
WMS request with MIME type text/html fails if template is invalid
| Reported by: | assefa | Owned by: | jmckenna@… |
|---|---|---|---|
| Priority: | high | Milestone: | 4.4 release |
| Component: | WMS Server | Version: | 4.3 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Here is the current situation:
When using the text/html mime type, mapserver will use the template file set
on
the layer and returns text/html as content type and also the template content
replaced with appropriate value. It works fine when the template is set to an
existing file.
The problem occurs when there the template value points to a non existing
value.
To correct this here are the changed done :
the text/html is not advertized by default and will only be advertized if
the user has defined "WMS_FEATURE_INFO_MIME_TYPE" "text/html"
Jeff can you do an update on this in wms-howto :
Section wms_feature_info_mime_type:
- used to specify additional MIME type that can be used when responding
to the GetFeature request.
For example if you want to use the layer's HTML template as a base for it's
response, you need to add "WMS_FEATURE_INFO_MIME_TYPE" "text/html". Setting
this will have the effect of adertizing text/html as one of the MIME types
supported for a GetFeature request. Ypu also need make sure that the layer
points to a valid html template. The client can then call the server with
INFO_FORMAT=text/html.
- if not specified, Mapserver by default has text/plain and GML implemented
Note that the "none" thing used is no more valid and should be removed.
Change History
Note: See
TracTickets for help on using
tickets.
