HUE-8829 [core] Fix redirect stops at /hue/accounts/login

Review Request #13975 — Created May 28, 2019 and submitted

yingc
hue
master
HUE-8829
hue
jgauthier, johan, ranade, romain, weixia
commit e71701bb81f26bb16b044d45caf1033671e940be (HEAD -> master)
Author: Ying Chen <yingchen@cloudera.com>
Date:   Tue May 28 17:40:05 2019 -0700

    HUE-8829 [core] Fix redirect stops at /hue/accounts/login

:100644 100644 e9c470f786... 64b2c2d511... M    desktop/core/src/desktop/auth/views.py
:100644 100644 e4d42520c5... 60ae8561b5... M    desktop/core/src/desktop/tests.py
Connected to pydev debugger (build 183.5912.18)
\[28/May/2019 17:38:42 -0700\] settings     DEBUG    DESKTOP_DB_TEST_NAME SET: /Users/yingchen/Documents/test_data/hue_unit_test/test.db
\[28/May/2019 17:38:42 -0700\] settings     DEBUG    DESKTOP_DB_TEST_USER SET: hue_test
\[28/May/2019 17:38:44 -0700\] decorators   INFO     AXES: BEGIN LOG
\[28/May/2019 17:38:44 -0700\] decorators   INFO     Using django-axes 2.2.0
nosetests desktop.tests:test_ui_customizations --cover-package=about,beeswax,filebrowser,hbase,help,hive,impala,jobbrowser,jobsub,metastore,oozie,pig,proxy,rdbms,search,security,spark,sqoop,useradmin,zookeeper,indexer,metadata,notebook,dashboard,kafka,aws,azure,hadoop,libanalyze,liboauth,liboozie,libopenid,librdbms,libsaml,libsentry,libsolr,libzookeeper --no-path-adjustment --traverse-namespace --verbosity=1
\[28/May/2019 17:38:44 -0700\] manager      DEBUG    DefaultPluginManager load plugin tty = nosetty:NoseTTY
\[28/May/2019 17:38:44 -0700\] manager      DEBUG    DefaultPluginManager load plugin windmill = windmill.authoring.nose_plugin:WindmillNosePlugin
\[28/May/2019 17:38:46 -0700\] rules        DEBUG    Loading file 
Creating test database for alias 'default'...
\[28/May/2019 17:39:03 -0700\] models       INFO     HuePermissions: 35 added, 0 updated, 0 up to date, 0 stale
\[28/May/2019 17:39:03 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:03 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:03 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:03 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:03 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:03 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:03 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:03 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:03 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:03 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:04 -0700\] models       INFO     HuePermissions: 0 added, 0 updated, 35 up to date, 0 stale
\[28/May/2019 17:39:05 -0700\] backend      INFO     Augmenting users with class: <class 'desktop.auth.backend.DefaultUserAugmentor'>
\[28/May/2019 17:39:05 -0700\] middleware   INFO     Unloading AuditLoggingMiddleware
\[28/May/2019 17:39:05 -0700\] middleware   INFO     Unloading SpnegoMiddleware
\[28/May/2019 17:39:05 -0700\] middleware   INFO     Unloading HueRemoteUserMiddleware
\[28/May/2019 17:39:05 -0700\] middleware   INFO     Unloading MimeTypeJSFileFixStreamingMiddleware
\[28/May/2019 17:39:05 -0700\] access       DEBUG    127.0.0.1 -anon- - "GET /hue/accounts/login/ HTTP/1.1" (mem: 183mb)
\[28/May/2019 17:39:05 -0700\] decorators   INFO     AXES: Calling decorated function: dt_login
\[28/May/2019 17:39:18 -0700\] access       INFO     127.0.0.1 -anon- - "GET /hue/accounts/login/ HTTP/1.1" returned in 13442ms (mem: 184mb)
\[28/May/2019 17:39:25 -0700\] middleware   INFO     Redirecting to login page: /hue/about/
\[28/May/2019 17:39:25 -0700\] access       INFO     127.0.0.1 -anon- - "GET /hue/about/ HTTP/1.1" (mem: 184mb)-- login redirection
\[28/May/2019 17:39:25 -0700\] access       INFO     127.0.0.1 -anon- - "GET /hue/about/ HTTP/1.1" returned in 3ms (mem: 184mb)
\[28/May/2019 17:39:25 -0700\] access       DEBUG    127.0.0.1 -anon- - "GET /hue/accounts/login HTTP/1.1" (mem: 184mb)
\[28/May/2019 17:39:25 -0700\] decorators   INFO     AXES: Calling decorated function: dt_login
\[28/May/2019 17:39:39 -0700\] access       INFO     127.0.0.1 -anon- - "GET /hue/accounts/login HTTP/1.1" returned in 14799ms (mem: 184mb)
.
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
Ran 1 test in 45.562s

OK
Destroying test database for alias 'default'...
\[28/May/2019 17:39:50 -0700\] test         INFO     Tests (desktop.tests:test_ui_customizations) returned 0

Process finished with exit code 0
romain
  1. Ship It!
  2. 
      
yingc
Review request changed

Status: Closed (submitted)

Loading...