Opened 14 years ago

Closed 14 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 Changed 14 years ago by tomkralidis

Owner: changed from mapserverbugs to tomkralidis

I'll take this one

comment:2 Changed 14 years ago by 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?

comment:3 in reply to:  2 Changed 14 years ago by nsavard

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 Changed 14 years ago by tomkralidis

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

comment:5 in reply to:  4 Changed 14 years ago by nsavard

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 Changed 14 years ago by 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.

comment:7 in reply to:  6 Changed 14 years ago by nsavard

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.