Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.0.2, 1.1
-
None
-
None
Description
All filtered query params are silently converted to strings. this causes tests for if (req.query.foo) to evaluate to true even for {"query_params":{"foo":false}} because "false" is true.
No clean solution exists to fix this as _changes has a GET entry point and request parameters are untyped.
Suggested fix is to scan the query_params in handle_replicate_req and throw a 400 Bad Request if any value is not a JSON string.