GitHub user sebbASF opened an issue:
https://github.com/apache/incubator-ponymail/issues/236
Bug: elastic.lua checkReturn() does not properly check return code
checkReturn() checks the return code for nil and "closed".
However AFAICT it can never be nil [1], it will either be an HTTP error
code (number) or a string containing an error message.
If the ES uri is wrong, then the code should respond with "Could not
contact database backend!" rather than "Backend Database returned code invalid
host name!" or similar.
[1]http://w3.impa.br/~diego/software/luasocket/http.html#request
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---