Opened 17 years ago

Closed 17 years ago

#2257 closed defect (invalid)

WMS describelayer doesn't return the correct version on Windows

Reported by: nsavard Owned by: tomkralidis
Priority: normal Milestone: 5.0 release
Component: WMS Server Version: 5.0
Severity: normal Keywords:
Cc:

Description

When I issue the following request on Windows with MapServer 5.0.0-beta3, the version contained in the response is 1.1.0 instead of 1.1.1. The version in the response on Linux is 1.1.1.

QUERY_STRING="map=[MAPFILE]&service=WMS&version=1.1.1& request=DescribeLayer&layers=rivers"

Change History (7)

comment:1 by tomkralidis, 17 years ago

Owner: changed from mapserverbugs to tomkralidis

I'll take this one

comment:2 by tomkralidis, 17 years ago

See r6552 on this one. The DescribeLayer DTD allows for any CDATA value to be in DescribeLayerResponse/@version. This was previously hardcoded to version 1.1.0.

As 1.1.1 supports DescribeLayer as well, I think it is more indicative for the client to receive back a DescribeLayer response with DescribeLayerResponse/@version being representative of the version the client passed. Note that this has no bearing to pointing to the schema document itself.

So this basically means whatever VERSION parameter the client passed is what will be returned in the response XML.

Normand: does this make sense?

in reply to:  2 comment:3 by nsavard, 17 years ago

Replying to tomkralidis:

See r6552 on this one. The DescribeLayer DTD allows for any CDATA value to be in DescribeLayerResponse/@version. This was previously hardcoded to version 1.1.0.

As 1.1.1 supports DescribeLayer as well, I think it is more indicative for the client to receive back a DescribeLayer response with DescribeLayerResponse/@version being representative of the version the client passed. Note that this has no bearing to pointing to the schema document itself.

So this basically means whatever VERSION parameter the client passed is what will be returned in the response XML.

Normand: does this make sense?

If I understood you correctly I should have had version 1.1.1 in the response since I passed in the request version 1.1.1. I got version 1.1.1 in the response on Linux but not on Windows which makes the msautotest failed on Windows (wms_describe_layer.xml in tomk_workshop).

comment:4 by tomkralidis, 17 years ago

You did not get that on Windows? Have you tried with beta4 or svn trunk on windows?

in reply to:  4 comment:5 by nsavard, 17 years ago

Replying to tomkralidis:

You did not get that on Windows? Have you tried with beta4 or svn trunk on windows?

I tried with 5.0.0-beta3.

comment:6 by tomkralidis, 17 years ago

r6552 was made AFTER 5.0.0-beta3, so you'll always get "1.1.0" as the version if you're testing against 5.0.0-beta3.

in reply to:  6 comment:7 by nsavard, 17 years ago

Resolution: invalid
Status: newclosed

Replying to tomkralidis:

r6552 was made AFTER 5.0.0-beta3, so you'll always get "1.1.0" as the version if you're testing against 5.0.0-beta3.

Tom,

You're right. I should have check that. I tested with 5.0.0-beta5 and it works great.

Note: See TracTickets for help on using tickets.