kylin-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (KYLIN-3565) User login error message is inaccurate
Date Wed, 19 Sep 2018 03:25:00 GMT


ASF GitHub Bot commented on KYLIN-3565:

luguosheng1314 closed pull request #238: KYLIN-3565 User login error message is inaccurate

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/webapp/app/js/controllers/auth.js b/webapp/app/js/controllers/auth.js
index 6e5fa30d56..949093ee4e 100644
--- a/webapp/app/js/controllers/auth.js
+++ b/webapp/app/js/controllers/auth.js
@@ -36,7 +36,9 @@ KylinApp.controller('LoginCtrl', function ($scope, $rootScope, $location,
     }, function (error) {
       $scope.loading = false;
-      $scope.error = "Unable to login, please check your username/password.";
+      $scope.error = error.status < 500
+        ? "Unable to login, please check your username/password."
+        : "System error, please contact your administrator.";


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> User login error message is inaccurate
> --------------------------------------
>                 Key: KYLIN-3565
>                 URL:
>             Project: Kylin
>          Issue Type: Bug
>          Components: REST Service, Web 
>    Affects Versions: v2.4.1
>         Environment: CentOS 6.7, HBase 1.2.0+cdh5.14.2+456
>            Reporter: Marc Wu
>            Assignee: XiaoXiang Yu
>            Priority: Minor
>              Labels: usability
>             Fix For: v2.6.0
>         Attachments: 2018-09-17_16-56-12.png, 2018-09-17_16-56-38.png, 2018-09-17_16-59-31.png,
image-2018-09-17-20-22-20-294.png, image-2018-09-17-20-25-54-896.png
> Hi Kylin team,
> We found one issue when log in Kylin. The error message will misunderstood user.
> I couldn't log in Kylin even I input correct username & password (enable LDAP).
> So I checked the log on server, it showed me that there exist HBase connection issues.
> Root cause is that the HBase server which Kylin used as metadata server is down, but
the login message showed me that I should check my username or password. It's really confusing.
> Then I read some source codes about login module, and found out Kylin shares the same
error message for different cases.
> We suggested two options:
>  # redirect to global error page when HBase connection fail after login, shows error
message(e.g. System Error, please contact system administrator).
>  # enhance the error code for login logic, make the error message more specific.
> There are login error message and the log. And I log in successfully after recover HBase
> !image-2018-09-17-20-25-54-896.png!!image-2018-09-17-20-22-20-294.png!

This message was sent by Atlassian JIRA

View raw message