Closed alorence closed 7 years ago
Thanks for the report. This should now be fixed in master. There's also now an aggressive test case for all sorts of query parameters.
Please let me know if it works for you.
For sure, no more Syntax error when using <
or >
in search query. Thanks !
No worries. Release 1.4.3 is out with the fix!
On 27 September 2017 at 10:35, Antoine Lorence notifications@github.com wrote:
For sure, no more Syntax error when using < or > in search query. Thanks !
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/etianen/django-watson/issues/219#issuecomment-332466171, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJFCJIszPS-JmDnUOQcggRyDbpsG6pEks5smhbtgaJpZM4PkENE .
Wow, it was quick ! Thank you for the reactivity, and keep up the good work!
Hi,
In a project using django-watson (1.4.2) and Django 1.11.5 with Postgres 9.6.1, a user searched for a contact by email copied from his desktop client. Basically, he pasted this term in the search field of the website:
John Doe <john@provider.com>
This caused an exception when corresponding request was executed. I was able to reproduce the issue with a very simple unit test (py.test):
and got this error:
Apparently, presence of "<" and ">" in the query is the cause of the syntax error. Without these chars, the search obviously run as usual. Currently, I am not sure if this specific chars should be catched and removed by me, by django-watson, or by Django itself (or maybe by Postgres ?).
What is your opinion ?