EIDA / wfcatalog

EIDA NG WFCatalog implementation
5 stars 8 forks source link

service: fails to decode URL encoding correctly #11

Closed petrrr closed 6 years ago

petrrr commented 6 years ago

Apparently the service does not decode URL encoded escape sequences (starting with %) correctly.

Here some evidence.

This one works:

This one should be equivalent, but fails:

Error 400: Bad Request
The submitted query string is invalid
Usage details are available from /documentation/
Request:
/wfcatalog/1/query?starttime=2018-01-01T00%3A00%3A00.000&endtime=2018-12-31T00%3A00%3A00.000
Request Submitted:
Mon Oct 01 2018 21:16:22 GMT+0000 (UTC)
Service Version:
1.0.0

This is particularly relevant because some frameworks escape characters with special meaning.

Jollyfant commented 6 years ago

Hi Petr, this has been fixed in https://github.com/EIDA/wfcatalog/commit/a5d4ce5fc125862b591d09ccd9c9730012eb729c. You can apply the single line change to your service.