CrunchyData / pg_featureserv

Lightweight RESTful Geospatial Feature Server for PostGIS in Go
Apache License 2.0
448 stars 89 forks source link

URL encoding special chars from the UI #113

Open jeanpommier opened 2 years ago

jeanpommier commented 2 years ago

Hi, Since datetime are not yet supported, I'm using a single text parameter to get a datetime as text, that I will then cast in my function.

"datetime" values look like "2022-06-13T12:00:00+00:00"

When setting such a value from the UI, it is apparently not URL-encoded, and results in a failure. image

Changing the + by %2B makes it work

dr-jts commented 2 years ago

Yes, this is a bug, and should have a simple fix.

Note that temporal queries are supported via CQL (see doc).

jeanpommier commented 2 years ago

Note that temporal queries are supported via CQL (see doc).

Wow, CQL filters, nice ! Thanks for pointing this out