Why do I get this error message when trying to access WFS?

Frank Warmerdam warmerdam at POBOX.COM
Mon May 8 08:29:38 PDT 2006


cropwithdawn wrote:
> Frank
> 
> I'm running MapServer on Windows 2000 Professional. I found out that
> msOWSBuildURLFilename() in mapows.c adds a backslash character.
> 
> See following snippet:
> 
> #ifdef _WIN32
>         sprintf(pszBuf, "%s\\", pszPath);
> #else
>         sprintf(pszBuf, "%s/", pszPath);
> #endif
> 
> I think this is what's messing things up. My mapfile works fine for WMS and
> the GML file mentioned in the error message is being created in the
> appropriate directory.
> 
> Is this a bug? If so, what's the work around? If not, what am I doing wrong?

Jeff,

I have filed a bug in the MapServer bugzilla on this topic.

   http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1770

I would encourage you to add yourself to the cc: list.

I'll give Assefa or anyone else a chance to comment on the bug, and failing
that I'll dig into it.

In the meantime I would encourage you to remove the trailing backslash
from the above sprintf() in your local code (or perhaps remove it from
you temp file path in the web section), and verify that works.

I do *think* it is a bug in the code, but I am not exactly sure.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org



More information about the MapServer-users mailing list