@@ -155,6 +155,7 @@ def wms_request_compare(self, request, extra=None, reference_file=None):
155
155
query_string = 'MAP=%s&SERVICE=WMS&VERSION=1.3&REQUEST=%s' % (urllib .quote (project ), request )
156
156
if extra is not None :
157
157
query_string += extra
158
+ print query_string
158
159
header , body = [str (_v ) for _v in self .server .handleRequest (query_string )]
159
160
response = header + body
160
161
f = open (self .testdata_path + (request .lower () if not reference_file else reference_file ) + '.txt' )
@@ -168,7 +169,7 @@ def wms_request_compare(self, request, extra=None, reference_file=None):
168
169
f = open(os.path.dirname(__file__) + '/response.txt', 'w+')
169
170
f.write(response)
170
171
f.close()
171
- """
172
+ # """
172
173
response = re .sub (RE_STRIP_PATH , '' , response )
173
174
expected = re .sub (RE_STRIP_PATH , '' , expected )
174
175
@@ -201,6 +202,17 @@ def test_project_wms(self):
201
202
'query_layers=testlayer%20%C3%A8%C3%A9&X=190&Y=320' ,
202
203
'wms_getfeatureinfo-text-plain' )
203
204
205
+
206
+ # Regression for #8656
207
+ # Mind the gap! (the space in the FILTER expression)
208
+ self .wms_request_compare ('GetFeatureInfo' ,
209
+ '&layers=testlayer%20%C3%A8%C3%A9&' +
210
+ 'INFO_FORMAT=text%2Fxml&' +
211
+ 'width=600&height=400&srs=EPSG%3A3857&' +
212
+ 'query_layers=testlayer%20%C3%A8%C3%A9&' +
213
+ 'FEATURE_COUNT=10&FILTER=testlayer%20%C3%A8%C3%A9' + urllib .quote (':"NAME" = \' two\' ' ),
214
+ 'wms_getfeatureinfo_filter' )
215
+
204
216
def wms_inspire_request_compare (self , request ):
205
217
"""WMS INSPIRE tests"""
206
218
project = self .testdata_path + "test+project_inspire.qgs"
@@ -306,7 +318,7 @@ def test_getLegendGraphics(self):
306
318
parms = {
307
319
'MAP' : self .testdata_path + "test%2Bproject.qgs" ,
308
320
'SERVICE' : 'WMS' ,
309
- 'VERSIONE ' : '1.0.0' ,
321
+ 'VERSION ' : '1.0.0' ,
310
322
'REQUEST' : 'GetLegendGraphic' ,
311
323
'FORMAT' : 'image/png' ,
312
324
#'WIDTH': '20', # optional
0 commit comments