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
Describe the bug
getFeature can not handle percent wildcard in a filter
To Reproduce
Steps to reproduce the behavior:
Configure a WFS layer with the filter property set to something that contains a percent sign e.g. "filter": "text LIKE '%tter%'"
Make a getFeature request on that layer
Watch error in console
Expected behavior
It should return those features that passes the filter
Additional context
Error occurs because when getFeature sends its request it is not URL encoded and instead relies on the automatic URL encoding that happens for all requests from a browser. Unfortunately that automatic URL encoding does not encode percent signs as that would lead to double encoding if the URL was already URL encoded.
This is one more example that getFeature should be rewritten as just a wrapper for WFSSource to avoid double implementation that in some cases behaves a bit different (And WFSSource is always the one that does it best).
The text was updated successfully, but these errors were encountered:
Describe the bug
getFeature can not handle percent wildcard in a filter
To Reproduce
Steps to reproduce the behavior:
"filter": "text LIKE '%tter%'"
Expected behavior
It should return those features that passes the filter
Additional context
Error occurs because when getFeature sends its request it is not URL encoded and instead relies on the automatic URL encoding that happens for all requests from a browser. Unfortunately that automatic URL encoding does not encode percent signs as that would lead to double encoding if the URL was already URL encoded.
This is one more example that getFeature should be rewritten as just a wrapper for WFSSource to avoid double implementation that in some cases behaves a bit different (And WFSSource is always the one that does it best).
The text was updated successfully, but these errors were encountered: