[ 
https://issues.apache.org/jira/browse/SUBMARINE-444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wanqiang Ji updated SUBMARINE-444:
----------------------------------
    Target Version: 0.4.0

> [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
>             Fix For: 0.4.0
>
>         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

Reply via email to