{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/227","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/227/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/227/events","html_url":"https://github.com/couchbase/couchbase-lite-android/issues/227","id":29726792,"number":227,"title":"request doc with \"open_revs=all\": Router unable to route request to do_GET_Documentjava","user":{"login":"andreibaranouski","id":1714151,"avatar_url":"https://avatars.githubusercontent.com/u/1714151?v=3","gravatar_id":"","url":"https://api.github.com/users/andreibaranouski","html_url":"https://github.com/andreibaranouski","followers_url":"https://api.github.com/users/andreibaranouski/followers","following_url":"https://api.github.com/users/andreibaranouski/following{/other_user}","gists_url":"https://api.github.com/users/andreibaranouski/gists{/gist_id}","starred_url":"https://api.github.com/users/andreibaranouski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreibaranouski/subscriptions","organizations_url":"https://api.github.com/users/andreibaranouski/orgs","repos_url":"https://api.github.com/users/andreibaranouski/repos","events_url":"https://api.github.com/users/andreibaranouski/events{/privacy}","received_events_url":"https://api.github.com/users/andreibaranouski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/labels/REST","name":"REST","color":"fbca04"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/labels/S4:%20minor","name":"S4: minor","color":"bfd4f2"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/labels/waffle:icebox","name":"waffle:icebox","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2014-03-19T12:10:24Z","updated_at":"2015-02-04T21:41:40Z","closed_at":null,"body":"not sure that we support open_revs (http://wiki.apache.org/couchdb/Replication_and_conflicts)\r\nbut I get error only when try to apply \"open_revs=all\"\r\n```\r\ncurl -X url -X PUT -H \"Content-Type: application/json\" -d '{\"username\":\"xyz2\"}' http://localhost:8080/api-test1/CCC\r\n{\"id\":\"CCC\",\"rev\":\"1-2693e231-a11e-4460-b314-9f8c600f71f7\",\"ok\":true}\r\nandrey@baranouski:~$ curl http://localhost:8080/api-test1/CCC?open_revs=all\r\n{\"error\":\"not_found\",\"reason\":\"Router unable to route request to do_GET_Documentjava.lang.reflect.InvocationTargetException\"}\r\nandrey@baranouski:~$ curl http://localhost:8080/api-test1/CCC?open_revs=alla\r\n{\"status\":400} \r\n```\r\n\r\nE/Database( 1095): Router unable to route request to do_GET_Document\r\nE/Database( 1095): java.lang.reflect.InvocationTargetException\r\nE/Database( 1095): \tat java.lang.reflect.Method.invokeNative(Native Method)\r\nE/Database( 1095): \tat java.lang.reflect.Method.invoke(Method.java:515)\r\nE/Database( 1095): \tat com.couchbase.lite.router.Router.start(Router.java:451)\r\nE/Database( 1095): \tat com.couchbase.lite.listener.LiteServlet.service(LiteServlet.java:102)\r\nE/Database( 1095): \tat javax.servlet.http.HttpServlet.service(HttpServlet.java:802)\r\nE/Database( 1095): \tat Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:2251)\r\nE/Database( 1095): \tat Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2176)\r\nE/Database( 1095): \tat Acme.Serve.Serve$ServeConnection.run(Serve.java:1988)\r\nE/Database( 1095): \tat Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223)\r\nE/Database( 1095): \tat java.lang.Thread.run(Thread.java:841)\r\nE/Database( 1095): Caused by: java.lang.NullPointerException\r\nE/Database( 1095): \tat com.couchbase.lite.router.Router.getMultipartRequestType(Router.java:235)\r\nE/Database( 1095): \tat com.couchbase.lite.router.Router.do_GET_Document(Router.java:1367)\r\nE/Database( 1095): \t... 10 more\r\n"},"comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/comments/72945561","html_url":"https://github.com/couchbase/couchbase-lite-android/issues/227#issuecomment-72945561","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/227","id":72945561,"user":{"login":"nolanlawson","id":283842,"avatar_url":"https://avatars.githubusercontent.com/u/283842?v=3","gravatar_id":"","url":"https://api.github.com/users/nolanlawson","html_url":"https://github.com/nolanlawson","followers_url":"https://api.github.com/users/nolanlawson/followers","following_url":"https://api.github.com/users/nolanlawson/following{/other_user}","gists_url":"https://api.github.com/users/nolanlawson/gists{/gist_id}","starred_url":"https://api.github.com/users/nolanlawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolanlawson/subscriptions","organizations_url":"https://api.github.com/users/nolanlawson/orgs","repos_url":"https://api.github.com/users/nolanlawson/repos","events_url":"https://api.github.com/users/nolanlawson/events{/privacy}","received_events_url":"https://api.github.com/users/nolanlawson/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T21:41:40Z","updated_at":"2015-02-04T21:41:40Z","body":"OK, I stand corrected; it does give you the `_revisions`. :)"}}