Opened 12 years ago

Closed 5 years ago

#4445 closed defect (wontfix)

Trouble with filtering with non-ASCII characters over http with GET

Reported by: Jukka Rahkonen Owned by: warmerdam
Priority: normal Milestone: closed_because_of_github_migration
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

The trouble occurs for example when sending the following ogrinfo command from a Windows computer with Finnish locale settings. The WFS server is using UTF-8 character encoding. The following request should find one feature but it does not.

ogrinfo -ro -so WFS:http://hip.latuviitta.org/cgi-bin/tinyows pks_tilastoalue_piste -where name='Hämeenkylä'

If "Hämeenkylä" is written in another way the WFS request is successful

ogrinfo -ro -so WFS:http://hip.latuviitta.org/cgi-bin/mapserver_wfs pks_tilastoalue_piste -where name='Hämeenkylä'

The WFS GetFeature request that is sent by the failing request is this

/cgi-bin/tinyows?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=lv:pks_tilastoalue_piste&FILTER=%3CFilter%20xmlns=%22http://www.opengis.net/ogc%22%20xmlns:lv=%22http://latuviitta.fi/%22%20xmlns:gml=%22http://www.opengis.net/gml%22%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Ename%3C/PropertyName%3E%3CLiteral%3EHämeenkylä%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E

I attach the failing request also as a file.

The problem is probably not special for GDAL because I have seen similar errors also with other use cases. For example when trying to do filtering of MapServer WMS layers by sending a filter which is included in the SLD_BODY parameter.

Attachments (1)

ogrinfo_encode_error.txt (481 bytes ) - added by Jukka Rahkonen 12 years ago.
A failing GetFeature request that was sent by ogrinfo

Download all attachments as: .zip

Change History (4)

by Jukka Rahkonen, 12 years ago

Attachment: ogrinfo_encode_error.txt added

A failing GetFeature request that was sent by ogrinfo

comment:2 by Jukka Rahkonen, 12 years ago

There is a copy-paste error in the second example request. It should point also to TinyOWS server WFS:http://hip.latuviitta.org/cgi-bin/tinyows instead Mapserver 6.0 WFS on the same server.

Mapserver is giving an internal server error (500) with 'Hämeenkylä' and also when I send the url-encoded example in my first comment with a browser. Mapserver accepts only 'Hämeenkylä'.

comment:3 by Even Rouault, 5 years ago

Milestone: closed_because_of_github_migration
Resolution: wontfix
Status: newclosed

This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.

Note: See TracTickets for help on using tickets.