You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@submarine.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/03/30 10:41:00 UTC

[jira] [Work logged] (SUBMARINE-444) [WORKBENCH] Login error should be more graceful

     [ https://issues.apache.org/jira/browse/SUBMARINE-444?focusedWorklogId=412259&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-412259 ]

ASF GitHub Bot logged work on SUBMARINE-444:
--------------------------------------------

                Author: ASF GitHub Bot
            Created on: 30/Mar/20 10:40
            Start Date: 30/Mar/20 10:40
    Worklog Time Spent: 10m 
      Work Description: lowc1012 commented on pull request #254: SUBMARINE-444. [WORKBENCH] Login error should be more graceful
URL: https://github.com/apache/submarine/pull/254
 
 
   ### What is this PR for?
   Make login error message be more graceful
   
   
   ### What type of PR is it?
   [Bug Fix]
   
   ### Todos
   
   ### What is the Jira issue?
   [SUBMARINE-444](https://issues.apache.org/jira/projects/SUBMARINE/issues/SUBMARINE-444)
   
   ### How should this be tested?
   [passed CI](https://travis-ci.org/github/lowc1012/submarine/builds/668670403)
   
   ### Screenshots (if appropriate)
   <img width="1227" alt="screenshot1" src="https://user-images.githubusercontent.com/52355146/77903564-aa4c5e00-72b5-11ea-9fa0-00d0b90f3990.png">
   
   <img width="875" alt="screenshot2" src="https://user-images.githubusercontent.com/52355146/77903650-c8b25980-72b5-11ea-98d4-85cc4c6cd772.png">
   
   ### Questions:
   * Does the licenses files need update? No
   * Is there breaking changes for older versions? No
   * Does this needs documentation? No
   
 
----------------------------------------------------------------
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:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 412259)
    Remaining Estimate: 0h
            Time Spent: 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: 10m
>  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-unsubscribe@submarine.apache.org
For additional commands, e-mail: dev-help@submarine.apache.org