Project: usergrid
Issue USERGRID-768: Bad characters in query causes 500 response; expecting 400?
If I make the following call: https://api.usergrid.com/org/app/collection?ql=where%20thirdPropertyTypeInt%20%3E%2030000%20&&%20thirdPropertyTypeInt%20%3C%2040000&limit=10 I get the response: {code} { "error": "null_pointer", "timestamp": 1435176848310, "duration": 1, "exception": "java.lang.NullPointerException" } {code} The cause is that the ampersands in the query string aren't url encoded (should be %26 instead of &). I would expect that if the query string is bad, we should be returning a 400 Bad Request, rather than an ominous NullPointerException/500.
Story points: 3