Subject: | REST 2.0 Json Query No results Bug |
Date: | Thu, 12 Oct 2017 22:28:31 +0000 |
To: | "bug-RT-Extension-REST2 [...] rt.cpan.org" <bug-RT-Extension-REST2 [...] rt.cpan.org> |
From: | Jake Murphy <jake.murphy [...] faredge.com.au> |
Hello,
Our team has recently added the REST 2.0 module to our RT.
We can successfully fetch single tickets/queues/etc using the API, and can search using the simple query method.
The problem is I have never managed to get the json query on any of the end points to work.
For example following the json query section of the documentation (at https://github.com/bestpractical/rt-extension-rest2), and searching tickets with a simple query:
curl -kis -u "<un>:<p>" -X POST "<url>/REST/2.0/tickets" --data-binary '[{"field":"id", "value":"210050"}]' -H 'Content-Type: application/json'
Returns no results (even though we have a ticket with id 210050).
I have yet to get any kind of results from any of the other JSON search interfaces either.
I also attempted to send invalid json (like '[{]}') which should return an error but it also does not.
Thanks,
Jake Murphy
Far Edge Technology
PS:
I have posted a comment on the rt forum about this: https://forum.bestpractical.com/t/rt-request-tracker-cant-able-to-get-the-tickets-for-query-in-rest-2-0/32271/2, on someone else's similar question.