[ https://issues.apache.org/jira/browse/SUBMARINE-444?focusedWorklogId=412716&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-412716 ]
ASF GitHub Bot logged work on SUBMARINE-444: -------------------------------------------- Author: ASF GitHub Bot Created on: 31/Mar/20 00:50 Start Date: 31/Mar/20 00:50 Worklog Time Spent: 10m Work Description: asfgit commented on pull request #254: SUBMARINE-444. [WORKBENCH] Login error should be more graceful URL: https://github.com/apache/submarine/pull/254 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 412716) Time Spent: 20m (was: 10m) > [WORKBENCH] Login error should be more graceful > ----------------------------------------------- > > Key: SUBMARINE-444 > URL: https://issues.apache.org/jira/browse/SUBMARINE-444 > Project: Apache Submarine > Issue Type: Bug > Components: Workbench Web > Affects Versions: 0.4.0 > Reporter: Wei-Chiu Chuang > Assignee: Ryan Lo > Priority: Major > Labels: pull-request-available > Attachments: Screen Shot 2020-03-20 at 2.40.56 PM.png > > Time Spent: 20m > Remaining Estimate: 0h > > If the sys_user table is empty, or if the user/password is incorrect, the > login page shows an error like this: > !Screen Shot 2020-03-20 at 2.40.56 PM.png! > The submarine workbench log has the following NPE error: > {noformat} > [ERROR] 2020-03-19 00:33:46,739 > method:org.apache.submarine.server.workbench.rest.LoginRestApi.login(LoginRestApi.java:65) > java.lang.NullPointerException > at > org.apache.submarine.server.workbench.rest.LoginRestApi.login(LoginRestApi.java:63) > 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.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:76) > at > org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:148) > at > org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:191) > at > org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:200) > at > org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:103) > at > org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:493) > at > org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:415) > at > org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:104) > at > org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:277) > {noformat} > We should make the login failure easier to understand. Do not assume the > sysUser is correct. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@submarine.apache.org For additional commands, e-mail: dev-h...@submarine.apache.org