Opened 15 years ago

Closed 15 years ago

#2821 closed defect (fixed)

Version string lost when outputting ExceptionReport XML

Reported by: tomkralidis Owned by: tomkralidis
Priority: normal Milestone: 5.4 release
Component: SOS Server Version: svn-trunk (development)
Severity: normal Keywords:
Cc: nsavard

Description

When outputting service exceptions, the version string is not output in the schemaLocation attribute of ExceptionReport when pointing to the .xsd:

<ows:ExceptionReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://schemas.opengis.net/ows//owsExceptionReport.xsd">

This resolves to mapowscommon.c: msOWSCommonExceptionReport. There hasn't been a change to this or calling code in months, so I'm not sure what the issue is.

Change History (3)

comment:1 by tomkralidis, 15 years ago

Status: newassigned

comment:2 by tomkralidis, 15 years ago

Sorta related to r7992 (== should have been !=). The version (as string) was only getting output if language wasn't defined (which, in this case, always is defined).

Cleaned this up a bit so that:

  • language is always output on exception (as all calling code shall pass)
  • ows_version_string is omitted in favour of fetching via msOWSGetVersionString instead

Changes made in:

All changes tested against msautotest/wxs/sos.map

comment:3 by tomkralidis, 15 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.