Opened 21 years ago

Closed 21 years ago

#444 closed defect (fixed)

[WMS Client] WMS GetMap fails on redirection header

Reported by: dmorissette Owned by: dmorissette
Priority: high Milestone:
Component: WMS Client Version: 4.1
Severity: normal Keywords:
Cc: pagurekd@…, tom.kralidis@…

Description

 

Change History (7)

comment:1 by dmorissette, 21 years ago

Cc: pagurekd@… added

comment:2 by dmorissette, 21 years ago

This proiblem was reported by Debbie Pagurek.  Using the context file at
http://wms1.agr.gc.ca/context_lakes.xml, all of the layers appears except for
the point layers.

The request fails with the following error in the Apache error_log:
[Mon Sep 29 15:08:01 2003].187837 HTTP: After download loop
[Mon Sep 29 15:08:01 2003].188536 HTTP: request failed with curl error code 47
(Maximum (10) redirects followed) for ...

(I took out the URL from the error message since it freezes bugzilla... odd!)

However the command-line version of curl is able to follow the redirection
(there is only one, not 10) and MapServer 4.0/4.1 which was used to reproduce
this is setup to follow redirections.

comment:3 by dmorissette, 21 years ago

bug_file_loc: http://wms1.agr.gc.ca/mapdata/itis/testscript.php?SERVICE=WMS&VERSION=1.1.0&LAYERS=Cyanocitta+cristata&FORMAT=image%2Fgif&TRANSPARENT=TRUE&STYLES=default&QUERY_LAYERS=Cyanocitta+cristata&REQUEST=GetMap&WIDTH=500&HEIGHT=300&SRS=EPSG:4326&BBOX=-87.490260
Trying to set the GetMapURL in the URL field since it freezes bugzilla when I
copy it to a comment.  :S

comment:4 by dmorissette, 21 years ago

bug_file_loc: 42.404220,-81.730260,45.860220&EXCEPTIONS=application/vnd.ogc.se_inimage

comment:5 by dmorissette, 21 years ago

This is really odd... I can't upload the sample context attachment to bugzilla.

comment:6 by dmorissette, 21 years ago

For the record, I was using libcurl 7.10.4 for my tests.

comment:7 by dmorissette, 21 years ago

Cc: Tom.Kralidis@… added
Resolution: fixed
Status: newclosed
It turns out that this was caused by a libcurl bug that has been fixed in
version 7.10.7.  From the libcurl 7.10.7 change log:

  - FOLLOWLOCATION (or -L) did not always ignore the redirect page properly

After upgrading libcurl to version 7.10.7 the layer works fine.

I will update the README.CONFIGURE docs to document the fact that 7.10.2 is
required, but 7.10.7 is strongly recommended.
Note: See TracTickets for help on using tickets.