-
Notifications
You must be signed in to change notification settings - Fork 29
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
TinyOWS crash on post requests #50
Comments
Andrea, I'm not able to reproduce this error. Is it 1.1.0 or trunk ? |
I'm using tinyows trunk version on a RedHat Enterprise 6 - 64bit. |
Humm quite strange, On my own i've used this one for instance:
|
Hi, Can you say me in what file there is the calls for the GetFeature Requests. Thx, |
Another information: |
You could use valgrind and tinyows debug script to help on this: ./test/unit-test YOUR_POST_REQUEST_FILE_PATH 2 |
Hi, it was not so easy for me. I see the issue is in the I can see that before this line of code /* check if VERSION is set and init Version */ The 'cgi' variable is properly set. After this function (ows_version_init) the 'cgi' variable is null. I don't know at now what happened in that function. |
mmhh.. no. The function ows_request_check end correctly. |
Perhaps I do a step forward the issue. the function in this piece of code: for (ln = layer_name_prefix->first; ln ; ln = ln->next) { seem to have always NULL the "layer_ns_prefix". Now I need to understand why this is always NULL on a POST request. |
found ! The issue was in the name of the prefix. My config.xml was using: <layer ns_prefix='ambiti_amministrativi' The character "_" was not understand from tinyows. <layer ns_prefix='ambitiamministrativi' It begin to work. I guess is better open a specific ticket. |
opened the ticket #52 |
I found another bug always on the lists of layer. |
Hi,
Try-ing this GET request:
http://web.regione.toscana.it/wfsvector/com.rt.wfs.RTmap/wfs?service=WFS&version=1.1.0&request=GetFeature&typename=catasto:rt_cat.idcatbdfog.rt.bb&maxFeatures=10&Filter=<Filter xmlns:wfs="http://www.opengis.net/wfs"><PropertyIsEqualTo><PropertyName>comune</PropertyName><Literal>FIRENZE</Literal></PropertyIsEqualTo></Filter>
I have a good response .
Instead if I send the same request using a POST method Tiny will crash silently:
This is the post request I try
[Tue Dec 11 10:09:30 2012] [EVENT] == Filling Storage == [Tue Dec 11 10:09:30 2012] [QUERY] <?xml version="1.0" encoding="UTF-8"?> <wfs:GetFeature handle="GeoTools 2.7.4 WFS DataStore" outputFormat="text/xml; subtype=gml/3.1.1" resultType="results" service="WFS" version="1.1.0" xmlns="http://www.opengis.net/ogc" maxFeatures="10" xmlns:gml="http://www.opengis.net/gml" xmlns:ambiti_amministrativi="http://www.regione.toscana.it/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ows="http://www.opengis.net/ows" xmlns:wfs="http://www.opengis.net/wfs"> <wfs:Query srsName="urn:ogc:def:crs:EPSG::25832" typeName="ambiti_amministrativi:idprovince"> <Filter> <PropertyIsEqualTo matchCase="true"> <PropertyName>nome</PropertyName> <Literal>FIRENZE</Literal> </PropertyIsEqualTo> </Filter> </wfs:Query> </wfs:GetFeature>
The log of tiny say nothing else.
Instead from the Tomcat Log I see this error:
INFO: cgi-tinyows: runCGI (stderr):wfs: src/struct/buffer.c:290: buffer_cmp: Assertion `buf' failed.
The text was updated successfully, but these errors were encountered: