#677 closed defect (fixed)
GetStyles returns ServiceException even if response is okay
Reported by: | tomkralidis | Owned by: | mapserverbugs |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | WMS Server | Version: | 4.3 |
Severity: | normal | Keywords: | |
Cc: |
Description
(using MapServer 4.2b3): If I issue: http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/mymapfile.map&version=1.1.1&service=WMS&request=GetStyles&layers=rivers I get : Content-type: application/vnd.ogc.se_xml Which is defined as an error content-type in OGC:WMS. However, if I look at the XML response, I expect an ServiceException XML document, however I get back the SLD document as requested. Looks like the content-type decl is off?
Change History (4)
comment:2 by , 20 years ago
Status: | new → assigned |
---|
Actually, according to section 13.1 of the SLD 1.0 spec, the MIME type should be application/vnd.ogc.sld+xml: " On successful extraction, an SLD document is returned of MIME type "application/vnd.ogc.sld+xml". " Is this correct, or is there a reason why we should use text/xml instead?
comment:3 by , 20 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I have committed a fix in 4.3 and 4.2.x (to be released in 4.2.3) to use MIME type application/vnd.ogc.sld+xml for the GetStyles response.
comment:4 by , 20 years ago
Oh, ok. I didn't realize that SLD had it's own MIME type. It'll most likely be omitted in future versions, but we should set as you suggest "application/vnd.ogc.sld+xml" for WMS 1.1.1 and SLD 1.0.0's sake.
Note:
See TracTickets
for help on using tickets.