[jira] [Commented] (GEODE-1524) Swagger UI does not show query errors
[ https://issues.apache.org/jira/browse/GEODE-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15505814#comment-15505814 ] ASF subversion and git services commented on GEODE-1524: Commit ccb514c29207dfaa7d5e109d0c5e21151797fc24 in incubator-geode's branch refs/heads/develop from [~ukohlmeyer] [ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=ccb514c ] GEODE-1524: Reverting Swagger version > Swagger UI does not show query errors > - > > Key: GEODE-1524 > URL: https://issues.apache.org/jira/browse/GEODE-1524 > Project: Geode > Issue Type: Improvement > Components: rest (dev) >Reporter: Jens Deppe >Assignee: Udo Kohlmeyer > Labels: bug-hunt > Fix For: 1.0.0-incubating > > > I'm playing with UDA and running adhoc queries through the Swagger UI. > However, if I have a catastrophic error in my query the Swagger UI doesn't > display it and I'm left with a 'progress spinner' bar. However, the same > query from the command line does produce an appropriate error. For example, > here I'm trying to use my {{sumuda}} function in a query: > {noformat} > (2.7)jdeppe@deppe-mbp bughunt-2016 $ curl -v -H "Accept: application/json" > 'http://127.0.0.1:8080/gemfire-api/v1/queries/adhoc?q=select%20sumuda(index)%20from%20%2Ffoo' > * Trying 127.0.0.1... > * Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0) > > GET /gemfire-api/v1/queries/adhoc?q=select%20sumuda(index)%20from%20%2Ffoo > > HTTP/1.1 > > Host: 127.0.0.1:8080 > > User-Agent: curl/7.43.0 > > Accept: application/json > > > < HTTP/1.1 500 Server Error > < Date: Fri, 10 Jun 2016 19:52:26 GMT > < Content-Type: application/json > < Accept-Charset: big5, big5-hkscs, cesu-8, euc-jp, euc-kr, gb18030, gb2312, > gbk, ibm-thai, ibm00858, ibm01140, ibm01141, ibm01142, ibm01143, ibm01144, > ibm01145, ibm01146, ibm01147, ibm01148, ibm01149, ibm037, ibm1026, ibm1047, > ibm273, ibm277, ibm278, ibm280, ibm284, ibm285, ibm290, ibm297, ibm420, > ibm424, ibm437, ibm500, ibm775, ibm850, ibm852, ibm855, ibm857, ibm860, > ibm861, ibm862, ibm863, ibm864, ibm865, ibm866, ibm868, ibm869, ibm870, > ibm871, ibm918, iso-2022-cn, iso-2022-jp, iso-2022-jp-2, iso-2022-kr, > iso-8859-1, iso-8859-13, iso-8859-15, iso-8859-2, iso-8859-3, iso-8859-4, > iso-8859-5, iso-8859-6, iso-8859-7, iso-8859-8, iso-8859-9, jis_x0201, > jis_x0212-1990, koi8-r, koi8-u, shift_jis, tis-620, us-ascii, utf-16, > utf-16be, utf-16le, utf-32, utf-32be, utf-32le, utf-8, windows-1250, > windows-1251, windows-1252, windows-1253, windows-1254, windows-1255, > windows-1256, windows-1257, windows-1258, windows-31j, x-big5-hkscs-2001, > x-big5-solaris, x-compound_text, x-euc-jp-linux, x-euc-tw, x-eucjp-open, > x-ibm1006, x-ibm1025, x-ibm1046, x-ibm1097, x-ibm1098, x-ibm1112, x-ibm1122, > x-ibm1123, x-ibm1124, x-ibm1166, x-ibm1364, x-ibm1381, x-ibm1383, x-ibm300, > x-ibm33722, x-ibm737, x-ibm833, x-ibm834, x-ibm856, x-ibm874, x-ibm875, > x-ibm921, x-ibm922, x-ibm930, x-ibm933, x-ibm935, x-ibm937, x-ibm939, > x-ibm942, x-ibm942c, x-ibm943, x-ibm943c, x-ibm948, x-ibm949, x-ibm949c, > x-ibm950, x-ibm964, x-ibm970, x-iscii91, x-iso-2022-cn-cns, x-iso-2022-cn-gb, > x-iso-8859-11, x-jis0208, x-jisautodetect, x-johab, x-macarabic, > x-maccentraleurope, x-maccroatian, x-maccyrillic, x-macdingbat, x-macgreek, > x-machebrew, x-maciceland, x-macroman, x-macromania, x-macsymbol, x-macthai, > x-macturkish, x-macukraine, x-ms932_0213, x-ms950-hkscs, x-ms950-hkscs-xp, > x-mswin-936, x-pck, x-sjis_0213, x-utf-16le-bom, x-utf-32be-bom, > x-utf-32le-bom, x-windows-50220, x-windows-50221, x-windows-874, > x-windows-949, x-windows-950, x-windows-iso2022jp > < Content-Length: 5211 > < Server: Jetty(9.3.6.v20151106) > < > {"message" : "Server has encountered while executing Adhoc query!", > "stackTrace" : > "com.gemstone.gemfire.rest.internal.web.exception.GemfireRestException: > Server has encountered while executing Adhoc query! > at > com.gemstone.gemfire.rest.internal.web.controllers.QueryAccessController.runAdhocQuery(QueryAccessController.java:208) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:222) > at > org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137) > at > org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocable
[jira] [Commented] (GEODE-1524) Swagger UI does not show query errors
[ https://issues.apache.org/jira/browse/GEODE-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15504511#comment-15504511 ] ASF subversion and git services commented on GEODE-1524: Commit 964ce8379a2bed515fdd9f3d08b1e4d0beb4f39e in incubator-geode's branch refs/heads/develop from [~ukohlmeyer] [ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=964ce83 ] GEODE-1524: Updating swagger annotations to 1.3.13 Removing of escape characters out of the return error messages. JSON documents with "\" are invalid if not escaped. > Swagger UI does not show query errors > - > > Key: GEODE-1524 > URL: https://issues.apache.org/jira/browse/GEODE-1524 > Project: Geode > Issue Type: Improvement > Components: rest (dev) >Reporter: Jens Deppe >Assignee: Udo Kohlmeyer > Labels: bug-hunt > > I'm playing with UDA and running adhoc queries through the Swagger UI. > However, if I have a catastrophic error in my query the Swagger UI doesn't > display it and I'm left with a 'progress spinner' bar. However, the same > query from the command line does produce an appropriate error. For example, > here I'm trying to use my {{sumuda}} function in a query: > {noformat} > (2.7)jdeppe@deppe-mbp bughunt-2016 $ curl -v -H "Accept: application/json" > 'http://127.0.0.1:8080/gemfire-api/v1/queries/adhoc?q=select%20sumuda(index)%20from%20%2Ffoo' > * Trying 127.0.0.1... > * Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0) > > GET /gemfire-api/v1/queries/adhoc?q=select%20sumuda(index)%20from%20%2Ffoo > > HTTP/1.1 > > Host: 127.0.0.1:8080 > > User-Agent: curl/7.43.0 > > Accept: application/json > > > < HTTP/1.1 500 Server Error > < Date: Fri, 10 Jun 2016 19:52:26 GMT > < Content-Type: application/json > < Accept-Charset: big5, big5-hkscs, cesu-8, euc-jp, euc-kr, gb18030, gb2312, > gbk, ibm-thai, ibm00858, ibm01140, ibm01141, ibm01142, ibm01143, ibm01144, > ibm01145, ibm01146, ibm01147, ibm01148, ibm01149, ibm037, ibm1026, ibm1047, > ibm273, ibm277, ibm278, ibm280, ibm284, ibm285, ibm290, ibm297, ibm420, > ibm424, ibm437, ibm500, ibm775, ibm850, ibm852, ibm855, ibm857, ibm860, > ibm861, ibm862, ibm863, ibm864, ibm865, ibm866, ibm868, ibm869, ibm870, > ibm871, ibm918, iso-2022-cn, iso-2022-jp, iso-2022-jp-2, iso-2022-kr, > iso-8859-1, iso-8859-13, iso-8859-15, iso-8859-2, iso-8859-3, iso-8859-4, > iso-8859-5, iso-8859-6, iso-8859-7, iso-8859-8, iso-8859-9, jis_x0201, > jis_x0212-1990, koi8-r, koi8-u, shift_jis, tis-620, us-ascii, utf-16, > utf-16be, utf-16le, utf-32, utf-32be, utf-32le, utf-8, windows-1250, > windows-1251, windows-1252, windows-1253, windows-1254, windows-1255, > windows-1256, windows-1257, windows-1258, windows-31j, x-big5-hkscs-2001, > x-big5-solaris, x-compound_text, x-euc-jp-linux, x-euc-tw, x-eucjp-open, > x-ibm1006, x-ibm1025, x-ibm1046, x-ibm1097, x-ibm1098, x-ibm1112, x-ibm1122, > x-ibm1123, x-ibm1124, x-ibm1166, x-ibm1364, x-ibm1381, x-ibm1383, x-ibm300, > x-ibm33722, x-ibm737, x-ibm833, x-ibm834, x-ibm856, x-ibm874, x-ibm875, > x-ibm921, x-ibm922, x-ibm930, x-ibm933, x-ibm935, x-ibm937, x-ibm939, > x-ibm942, x-ibm942c, x-ibm943, x-ibm943c, x-ibm948, x-ibm949, x-ibm949c, > x-ibm950, x-ibm964, x-ibm970, x-iscii91, x-iso-2022-cn-cns, x-iso-2022-cn-gb, > x-iso-8859-11, x-jis0208, x-jisautodetect, x-johab, x-macarabic, > x-maccentraleurope, x-maccroatian, x-maccyrillic, x-macdingbat, x-macgreek, > x-machebrew, x-maciceland, x-macroman, x-macromania, x-macsymbol, x-macthai, > x-macturkish, x-macukraine, x-ms932_0213, x-ms950-hkscs, x-ms950-hkscs-xp, > x-mswin-936, x-pck, x-sjis_0213, x-utf-16le-bom, x-utf-32be-bom, > x-utf-32le-bom, x-windows-50220, x-windows-50221, x-windows-874, > x-windows-949, x-windows-950, x-windows-iso2022jp > < Content-Length: 5211 > < Server: Jetty(9.3.6.v20151106) > < > {"message" : "Server has encountered while executing Adhoc query!", > "stackTrace" : > "com.gemstone.gemfire.rest.internal.web.exception.GemfireRestException: > Server has encountered while executing Adhoc query! > at > com.gemstone.gemfire.rest.internal.web.controllers.QueryAccessController.runAdhocQuery(QueryAccessController.java:208) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:222) > at > org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137) > at > org.springframework.web.servl
[jira] [Commented] (GEODE-1524) Swagger UI does not show query errors
[ https://issues.apache.org/jira/browse/GEODE-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15496935#comment-15496935 ] Hitesh Khamesra commented on GEODE-1524: 4xx Client error – codes are used to tell the client that a fault has taken place on THEIR side. They should not re-transmit the same request again, but fix the error first. 5xx Server error – codes that tell the client the server failed to fulfill an apparently valid request. The client can continue and try again with the request without modification. > Swagger UI does not show query errors > - > > Key: GEODE-1524 > URL: https://issues.apache.org/jira/browse/GEODE-1524 > Project: Geode > Issue Type: Improvement > Components: rest (dev) >Reporter: Jens Deppe >Assignee: Udo Kohlmeyer > Labels: bug-hunt > > I'm playing with UDA and running adhoc queries through the Swagger UI. > However, if I have a catastrophic error in my query the Swagger UI doesn't > display it and I'm left with a 'progress spinner' bar. However, the same > query from the command line does produce an appropriate error. For example, > here I'm trying to use my {{sumuda}} function in a query: > {noformat} > (2.7)jdeppe@deppe-mbp bughunt-2016 $ curl -v -H "Accept: application/json" > 'http://127.0.0.1:8080/gemfire-api/v1/queries/adhoc?q=select%20sumuda(index)%20from%20%2Ffoo' > * Trying 127.0.0.1... > * Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0) > > GET /gemfire-api/v1/queries/adhoc?q=select%20sumuda(index)%20from%20%2Ffoo > > HTTP/1.1 > > Host: 127.0.0.1:8080 > > User-Agent: curl/7.43.0 > > Accept: application/json > > > < HTTP/1.1 500 Server Error > < Date: Fri, 10 Jun 2016 19:52:26 GMT > < Content-Type: application/json > < Accept-Charset: big5, big5-hkscs, cesu-8, euc-jp, euc-kr, gb18030, gb2312, > gbk, ibm-thai, ibm00858, ibm01140, ibm01141, ibm01142, ibm01143, ibm01144, > ibm01145, ibm01146, ibm01147, ibm01148, ibm01149, ibm037, ibm1026, ibm1047, > ibm273, ibm277, ibm278, ibm280, ibm284, ibm285, ibm290, ibm297, ibm420, > ibm424, ibm437, ibm500, ibm775, ibm850, ibm852, ibm855, ibm857, ibm860, > ibm861, ibm862, ibm863, ibm864, ibm865, ibm866, ibm868, ibm869, ibm870, > ibm871, ibm918, iso-2022-cn, iso-2022-jp, iso-2022-jp-2, iso-2022-kr, > iso-8859-1, iso-8859-13, iso-8859-15, iso-8859-2, iso-8859-3, iso-8859-4, > iso-8859-5, iso-8859-6, iso-8859-7, iso-8859-8, iso-8859-9, jis_x0201, > jis_x0212-1990, koi8-r, koi8-u, shift_jis, tis-620, us-ascii, utf-16, > utf-16be, utf-16le, utf-32, utf-32be, utf-32le, utf-8, windows-1250, > windows-1251, windows-1252, windows-1253, windows-1254, windows-1255, > windows-1256, windows-1257, windows-1258, windows-31j, x-big5-hkscs-2001, > x-big5-solaris, x-compound_text, x-euc-jp-linux, x-euc-tw, x-eucjp-open, > x-ibm1006, x-ibm1025, x-ibm1046, x-ibm1097, x-ibm1098, x-ibm1112, x-ibm1122, > x-ibm1123, x-ibm1124, x-ibm1166, x-ibm1364, x-ibm1381, x-ibm1383, x-ibm300, > x-ibm33722, x-ibm737, x-ibm833, x-ibm834, x-ibm856, x-ibm874, x-ibm875, > x-ibm921, x-ibm922, x-ibm930, x-ibm933, x-ibm935, x-ibm937, x-ibm939, > x-ibm942, x-ibm942c, x-ibm943, x-ibm943c, x-ibm948, x-ibm949, x-ibm949c, > x-ibm950, x-ibm964, x-ibm970, x-iscii91, x-iso-2022-cn-cns, x-iso-2022-cn-gb, > x-iso-8859-11, x-jis0208, x-jisautodetect, x-johab, x-macarabic, > x-maccentraleurope, x-maccroatian, x-maccyrillic, x-macdingbat, x-macgreek, > x-machebrew, x-maciceland, x-macroman, x-macromania, x-macsymbol, x-macthai, > x-macturkish, x-macukraine, x-ms932_0213, x-ms950-hkscs, x-ms950-hkscs-xp, > x-mswin-936, x-pck, x-sjis_0213, x-utf-16le-bom, x-utf-32be-bom, > x-utf-32le-bom, x-windows-50220, x-windows-50221, x-windows-874, > x-windows-949, x-windows-950, x-windows-iso2022jp > < Content-Length: 5211 > < Server: Jetty(9.3.6.v20151106) > < > {"message" : "Server has encountered while executing Adhoc query!", > "stackTrace" : > "com.gemstone.gemfire.rest.internal.web.exception.GemfireRestException: > Server has encountered while executing Adhoc query! > at > com.gemstone.gemfire.rest.internal.web.controllers.QueryAccessController.runAdhocQuery(QueryAccessController.java:208) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:222) > at > org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137) > at > org.springframework.web.servlet.mvc.method.annotation.Serv
[jira] [Commented] (GEODE-1524) Swagger UI does not show query errors
[ https://issues.apache.org/jira/browse/GEODE-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15325191#comment-15325191 ] Jens Deppe commented on GEODE-1524: --- Even just a query which tries to retrieve from an undefined region doesn't return anything and just spins in the UI. > Swagger UI does not show query errors > - > > Key: GEODE-1524 > URL: https://issues.apache.org/jira/browse/GEODE-1524 > Project: Geode > Issue Type: Improvement > Components: rest (dev) >Reporter: Jens Deppe > Labels: bug-hunt > > I'm playing with UDA and running adhoc queries through the Swagger UI. > However, if I have a catastrophic error in my query the Swagger UI doesn't > display it and I'm left with a 'progress spinner' bar. However, the same > query from the command line does produce an appropriate error. For example, > here I'm trying to use my {{sumuda}} function in a query: > {noformat} > (2.7)jdeppe@deppe-mbp bughunt-2016 $ curl -v -H "Accept: application/json" > 'http://127.0.0.1:8080/gemfire-api/v1/queries/adhoc?q=select%20sumuda(index)%20from%20%2Ffoo' > * Trying 127.0.0.1... > * Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0) > > GET /gemfire-api/v1/queries/adhoc?q=select%20sumuda(index)%20from%20%2Ffoo > > HTTP/1.1 > > Host: 127.0.0.1:8080 > > User-Agent: curl/7.43.0 > > Accept: application/json > > > < HTTP/1.1 500 Server Error > < Date: Fri, 10 Jun 2016 19:52:26 GMT > < Content-Type: application/json > < Accept-Charset: big5, big5-hkscs, cesu-8, euc-jp, euc-kr, gb18030, gb2312, > gbk, ibm-thai, ibm00858, ibm01140, ibm01141, ibm01142, ibm01143, ibm01144, > ibm01145, ibm01146, ibm01147, ibm01148, ibm01149, ibm037, ibm1026, ibm1047, > ibm273, ibm277, ibm278, ibm280, ibm284, ibm285, ibm290, ibm297, ibm420, > ibm424, ibm437, ibm500, ibm775, ibm850, ibm852, ibm855, ibm857, ibm860, > ibm861, ibm862, ibm863, ibm864, ibm865, ibm866, ibm868, ibm869, ibm870, > ibm871, ibm918, iso-2022-cn, iso-2022-jp, iso-2022-jp-2, iso-2022-kr, > iso-8859-1, iso-8859-13, iso-8859-15, iso-8859-2, iso-8859-3, iso-8859-4, > iso-8859-5, iso-8859-6, iso-8859-7, iso-8859-8, iso-8859-9, jis_x0201, > jis_x0212-1990, koi8-r, koi8-u, shift_jis, tis-620, us-ascii, utf-16, > utf-16be, utf-16le, utf-32, utf-32be, utf-32le, utf-8, windows-1250, > windows-1251, windows-1252, windows-1253, windows-1254, windows-1255, > windows-1256, windows-1257, windows-1258, windows-31j, x-big5-hkscs-2001, > x-big5-solaris, x-compound_text, x-euc-jp-linux, x-euc-tw, x-eucjp-open, > x-ibm1006, x-ibm1025, x-ibm1046, x-ibm1097, x-ibm1098, x-ibm1112, x-ibm1122, > x-ibm1123, x-ibm1124, x-ibm1166, x-ibm1364, x-ibm1381, x-ibm1383, x-ibm300, > x-ibm33722, x-ibm737, x-ibm833, x-ibm834, x-ibm856, x-ibm874, x-ibm875, > x-ibm921, x-ibm922, x-ibm930, x-ibm933, x-ibm935, x-ibm937, x-ibm939, > x-ibm942, x-ibm942c, x-ibm943, x-ibm943c, x-ibm948, x-ibm949, x-ibm949c, > x-ibm950, x-ibm964, x-ibm970, x-iscii91, x-iso-2022-cn-cns, x-iso-2022-cn-gb, > x-iso-8859-11, x-jis0208, x-jisautodetect, x-johab, x-macarabic, > x-maccentraleurope, x-maccroatian, x-maccyrillic, x-macdingbat, x-macgreek, > x-machebrew, x-maciceland, x-macroman, x-macromania, x-macsymbol, x-macthai, > x-macturkish, x-macukraine, x-ms932_0213, x-ms950-hkscs, x-ms950-hkscs-xp, > x-mswin-936, x-pck, x-sjis_0213, x-utf-16le-bom, x-utf-32be-bom, > x-utf-32le-bom, x-windows-50220, x-windows-50221, x-windows-874, > x-windows-949, x-windows-950, x-windows-iso2022jp > < Content-Length: 5211 > < Server: Jetty(9.3.6.v20151106) > < > {"message" : "Server has encountered while executing Adhoc query!", > "stackTrace" : > "com.gemstone.gemfire.rest.internal.web.exception.GemfireRestException: > Server has encountered while executing Adhoc query! > at > com.gemstone.gemfire.rest.internal.web.controllers.QueryAccessController.runAdhocQuery(QueryAccessController.java:208) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:222) > at > org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137) > at > org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110) > at > org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:814) > at > org.springframework.web.servlet.mvc.meth