Closed Aminmalek closed 1 year ago
if (token ==null) {
ctx.fail(HttpResponseStatus.UNAUTHORIZED.code())
ctx.response().end()
}
I guess. Can you fix this? There's not authentication header sent via the browser...
if (token ==null) { ctx.fail(HttpResponseStatus.UNAUTHORIZED.code()) ctx.response().end() }
I guess. Can you fix this? There's not authentication header sent via the browser...
OK I will work on it, we will discuss about this.
You should throw a runtime exception instead of my proposed solution. Also in the following lines if Auth fails. With ctx::fail
the next lines are executed as well, but we don't need it. Maybe if we want to also log the exception, hmm
You should throw a runtime exception instead of my proposed solution. Also in the following lines if Auth fails. With
ctx::fail
the next lines are executed as well, but we don't need it. Maybe if we want to also log the exception, hmm
We make sure that this request came from local host and a browser (maybe curl on server for example ) and show a message to user that the Sirix installed successfully.
We could add a route for "/" with no Auth handler and returning a small HTML with the info and HTTP status code 200. But in any case the NPE should not happen if no auth header is provided.
GET "/" is used to list all databases optionally with the resources in the database, so it's already taken
Describe the bug This error appears after sending request in browser
To Reproduce Steps to reproduce the behavior.
Expected behavior some thing that tell me Sirix is ready to use
Additional context Here it is