Skip to content

URL escaped characters in json values break PUT operation #32

@mooreds

Description

@mooreds

The error message I get when looking at a result is:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIKE '&price=%3C=300000&price=200001&lat=40.1',endpoint = 'test@example.com',las' at line 1 :: UPDATE userdb.saved_search SET api_where_clause LIKE '&price=%3C=300000&price=200001&lat=40.1',endpoint = 'test@example.com',last_run = '2013-01-10 10:00:00.0',search_name = 'home search lat price108492551',alert_type_id = 2 WHERE saved_search_id = 981

It looks like the update SQL parsing is getting confused by the % in %3C, which is actually a URL escaped > (or maybe <, I lose track).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions