Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8983

Invalid Ickle query causes server exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 9.2.1.Final
    • 9.2.0.Final
    • Remote Querying
    • None
    • Hide

      Execute curl -v -u user:user -X POST -d '

      {"query":"select id,name from Character where id:1009148","max_results":2}

      ' -H "Content-Type: application/json" "http://127.0.0.1:8080/rest/indexed?action=search" on https://github.com/gustavonalle/infinispan-marvel demo

      Show
      Execute curl -v -u user:user -X POST -d ' {"query":"select id,name from Character where id:1009148","max_results":2} ' -H "Content-Type: application/json" "http://127.0.0.1:8080/rest/indexed?action=search" on https://github.com/gustavonalle/infinispan-marvel demo

      I wrote an invalid Ickle query: select id, name from Character where id:"1009148" but instead of getting an error back the server side blew up with an exception. We should catch these cases and report back to the client the cause of the error.

            gfernand@redhat.com Gustavo Fernandes (Inactive)
            vblagoje Vladimir Blagojevic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: