You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# display multiple features filtered from multiple layers with same filter for some
802
+
qs="?"+"&".join(["%s=%s"%iforiinlist({
803
+
"MAP": urllib.parse.quote(self.projectPath),
804
+
"SERVICE": "WMS",
805
+
"VERSION": "1.1.1",
806
+
"REQUEST": "GetMap",
807
+
"LAYERS": "Country,Country_Diagrams,Hello",
808
+
"STYLES": "",
809
+
"FORMAT": "image/png",
810
+
"BBOX": "1017529,-4226661,11271098,17063190",
811
+
"HEIGHT": "500",
812
+
"WIDTH": "500",
813
+
"CRS": "EPSG:3857",
814
+
"FILTER": "Country,Country_Diagrams: \"name\" IN ( 'africa' , 'eurasia' );Hello: \"color\" IN ( 'magenta' , 'cerese' )"
815
+
}.items())])
816
+
817
+
r, h=self._result(self._execute_request(qs))
818
+
self._img_diff_error(r, h, "WMS_GetMap_Filter5")
819
+
820
+
# Error in filter (missing quote after africa) with multiple layer filter
821
+
qs="?"+"&".join(["%s=%s"%iforiinlist({
822
+
"MAP": urllib.parse.quote(self.projectPath),
823
+
"SERVICE": "WMS",
824
+
"VERSION": "1.1.1",
825
+
"REQUEST": "GetMap",
826
+
"LAYERS": "Country,Country_Diagrams,Hello",
827
+
"STYLES": "",
828
+
"FORMAT": "image/png",
829
+
"BBOX": "1017529,-4226661,11271098,17063190",
830
+
"HEIGHT": "500",
831
+
"WIDTH": "500",
832
+
"CRS": "EPSG:3857",
833
+
"FILTER": "Country,Country_Diagrams: \"name\" IN ( 'africa , 'eurasia' );Hello: \"color\" IN ( 'magenta' , 'cerese' )"
834
+
}.items())])
835
+
836
+
expected=self.strip_version_xmlns(b'<ServiceExceptionReport >\n <ServiceException code="Filter string rejected">The filter string "name" IN ( \'africa , \'eurasia\' ) has been rejected because of security reasons. Note: Text strings have to be enclosed in single or double quotes. A space between each word / special character is mandatory. Allowed Keywords and special characters are AND,OR,IN,<,>=,>,>=,!=,\',\',(,),DMETAPHONE,SOUNDEX. Not allowed are semicolons in the filter expression.</ServiceException>\n</ServiceExceptionReport>\n')
0 commit comments