Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WFS 1.1.0 GetCapabilities crashes MapServer 6.2 #4419

Closed
taroy1 opened this issue Aug 9, 2012 · 1 comment
Closed

WFS 1.1.0 GetCapabilities crashes MapServer 6.2 #4419

taroy1 opened this issue Aug 9, 2012 · 1 comment

Comments

@taroy1
Copy link

taroy1 commented Aug 9, 2012

Having rebuilt MapServer today with the latest code from the 6.2 branch, performing a WFS version 1.1.0 GetCapabilities request now crashes MapServer. A WFS version 1.0.0 request works fine.

Here is an example WFS request with map file that results in the crash:

http://localhost/cgi-bin/mapserv.exe?map=C:\tmp\test.map&SERVICE=WFS&REQUEST=GetCapabilities&VERSION=1.1.0

MAP
 NAME "Test"
 
 WEB
   METADATA
     ows_enable_request "*"
   END
 END

 PROJECTION
   "init=epsg:4326"
 END

 LAYER
   NAME "GreenBox"
   TYPE POLYGON
   FEATURE
     WKT "POLYGON ((0 0,6 0,6 6,0 6,0 0))"
   END
   CLASS
     STYLE
       COLOR 0 255 0
     END
   END
 END

END
@tbonfort
Copy link
Member

cc @faegi . This was brought in by 9bcec4f :

/* add namespace to layer name */
  value = msOWSLookupMetadata(&(map->web.metadata), "FO", "namespace_prefix");
  n = strlen(value)+strlen(lp->name)+1+1;

value must be checked for NULL (the whole block probably needs checking: what namespace to use if none was supplied?)

mkofahl pushed a commit to faegi/mapserver that referenced this issue Apr 9, 2013
mkofahl pushed a commit to faegi/mapserver that referenced this issue Apr 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants