Ticket #1253 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

[WFS-server] template error when issuing DescribeFeatureType via POST

Reported by: tomkralidis Owned by: mapserverbugs
Priority: high Milestone:
Component: WFS Server Version: unspecified
Severity: normal Keywords:
Cc:

Description

I'm submitting this on behalf of a partner/colleague (on cc list)

When issuing a DescribeFeatureType as HTTP POST:

http://www.bsc-eoc.org/cgi-bin/bsc_eoc.asp

Response is:

<HTML>
<HEAD><TITLE>MapServer Message</TITLE></HEAD> 
<!-- MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG 
OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ 
SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT 
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER 
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE --> <BODY 
BGCOLOR="#FFFFFF"> 
mapserv(): Web application error. No template provided. <br> 
</BODY></HTML> 

Using:

MapServer 4.4.0
Windows Server 2003
IIS

I will include a zipfile testcase of the mapfile in question, and sample HTML
with a POST request.

Attachments

testcase.zip Download (4.2 KB) - added by tomkralidis 8 years ago.
testcase for this bug

Change History

Changed 8 years ago by tomkralidis

testcase for this bug

Changed 8 years ago by dmorissette

Tom, we've had reports of similar issues in the past that were caused by proxies
or firewalls that didn't let XML POST requests go through. 

I would suggest that you test this first directly on the server, or on the same
local network, or on one of your own servers to confirm that this is not a proxy
of firewall issue.

BTW, they use an ASP wrapper: are you sure that the wrapper lets the XML post
information go through and uses the correct MIME types?

Changed 8 years ago by tomkralidis

I just tested on my own (shell script redirect to mapserv style), and got no
problems.

Their ASP wrapper is verbatim as per:
http://mapserver.gis.umn.edu/doc44/wms-server-howto.html#onlineresourceurl

I tried this against their WFS (HTTP POST), but pointing directly to the binary
with map= in the URL (no ASP wrapper).  Worked fine.

I tried the same test on  a few other WMSs out there with the ASP wrapper
script, and get the same problem behaviour.

So I would say there is some problem with the ASP wrapper script.

Perhaps an ASP guru can advise on what's fouling up.

Changed 8 years ago by dmorissette

It seems that the wrapper script in the howto si built only for the GET method
(it reads QUERY_STRING, and it seems to initialize the HTTP object with a
hardcoded GET method.

Unfortunately I am no ASP expert so I can't help. I don't even remember who
contributed that script. Maybe you could post a question to the list?

Changed 8 years ago by tomkralidis

  • status changed from new to closed
  • resolution set to fixed
We tried with a modified ASP wrapper which handles GET and POST and all works
fine.  I've posted the fix in bug 1254.  Closing this bug.
Note: See TracTickets for help on using tickets.