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)
Change History (4)
by , 12 years ago
Attachment: | ogrinfo_encode_error.txt added |
---|
comment:1 by , 12 years ago
I just noticed that GDAL perhaps does not url-encode my string "Hämeenkylä". When sending requests with a browser I am getting a correct response by writing "Hämeenkylä" as H%C3%A4meenkyl%C3%A4
comment:2 by , 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 , 5 years ago
Milestone: | → closed_because_of_github_migration |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
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.
A failing GetFeature request that was sent by ogrinfo