Bug 1339994 - Login page already tries to query API before successful login
Summary: Login page already tries to query API before successful login
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Storage Console
Classification: Red Hat Storage
Component: UI
Version: 2
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 3
Assignee: sankarshan
QA Contact: sds-qe-bugs
URL:
Whiteboard:
Depends On: 1298539
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-26 10:16 UTC by Chris Blum
Modified: 2017-03-23 04:11 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-23 04:11:08 UTC
Embargoed:


Attachments (Terms of Use)
Firefox network analyzer during opening of RHSC 2.0 login page (213.99 KB, image/png)
2016-07-01 11:01 UTC, Martin Bukatovic
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1298539 0 unspecified CLOSED login page contains unused html code 2021-02-22 00:41:40 UTC

Internal Links: 1298539

Description Chris Blum 2016-05-26 10:16:01 UTC
Description of problem:
Before logging in, the client's browser already tries to connect to the API, polluting the skyring.log with messages like these:
https://gist.github.com/zeichenanonym/5699761bc2355b5c6feba41cafd8676e
until the login has been successfully.

Can we disable these API calls until the login has actually happened?

Comment 2 Martin Bukatovic 2016-06-10 15:26:44 UTC
Posting content of github gist file from the description here so that
one can find this BZ via bugzilla search for related error messages:

~~~
May 26 06:12:53 rhs-c salt-master[6038]: [WARNING ] method Listener.PushUnManagedNode returns empty or false
May 26 06:12:54 rhs-c salt-master[6038]: [WARNING ] method Listener.PushUnManagedNode returns empty or false
May 26 06:12:56 rhs-c skyring[6164]: [negroni] Started GET /api/v1/events
May 26 06:12:56 rhs-c skyring[6164]: 2016-05-26T06:12:56.065-04:00 INFO     skyring.go:429 LoginRequired] Not Authorized
May 26 06:12:56 rhs-c skyring[6164]: [negroni] Completed 401 Unauthorized in 679.171µs
May 26 06:12:58 rhs-c skyring[6164]: [negroni] Started GET /api/v1/unmanaged_nodes
May 26 06:12:58 rhs-c skyring[6164]: 2016-05-26T06:12:58.003-04:00 INFO     skyring.go:429 LoginRequired] Not Authorized
May 26 06:12:58 rhs-c skyring[6164]: [negroni] Completed 401 Unauthorized in 593.787µs
May 26 06:13:03 rhs-c salt-master[6038]: [WARNING ] method Listener.PushUnManagedNode returns empty or false
May 26 06:13:04 rhs-c salt-master[6038]: [WARNING ] method Listener.PushUnManagedNode returns empty or false
May 26 06:13:06 rhs-c skyring[6164]: [negroni] Started GET /api/v1/events
May 26 06:13:06 rhs-c skyring[6164]: 2016-05-26T06:13:06.067-04:00 INFO     skyring.go:429 LoginRequired] Not Authorized
May 26 06:13:06 rhs-c skyring[6164]: [negroni] Completed 401 Unauthorized in 634.368µs
May 26 06:13:10 rhs-c skyring[6164]: [negroni] Started GET /api/v1/unmanaged_nodes
May 26 06:13:10 rhs-c skyring[6164]: 2016-05-26T06:13:10.001-04:00 INFO     skyring.go:429 LoginRequired] Not Authorized
May 26 06:13:10 rhs-c skyring[6164]: [negroni] Completed 401 Unauthorized in 607.816µs
May 26 06:13:13 rhs-c salt-master[6038]: [WARNING ] method Listener.PushUnManagedNode returns empty or false
May 26 06:13:14 rhs-c salt-master[6038]: [WARNING ] method Listener.PushUnManagedNode returns empty or false
May 26 06:13:16 rhs-c skyring[6164]: [negroni] Started GET /api/v1/events
May 26 06:13:16 rhs-c skyring[6164]: 2016-05-26T06:13:16.066-04:00 INFO     skyring.go:429 LoginRequired] Not Authorized
May 26 06:13:16 rhs-c skyring[6164]: [negroni] Completed 401 Unauthorized in 914.877µs
May 26 06:13:21 rhs-c skyring[6164]: [negroni] Started GET /api/v1/unmanaged_nodes
May 26 06:13:21 rhs-c skyring[6164]: 2016-05-26T06:13:21.998-04:00 INFO     skyring.go:429 LoginRequired] Not Authorized
May 26 06:13:21 rhs-c skyring[6164]: [negroni] Completed 401 Unauthorized in 646.6µs
May 26 06:13:24 rhs-c salt-master[6038]: [WARNING ] method Listener.PushUnManagedNode returns empty or false
May 26 06:13:24 rhs-c salt-master[6038]: [WARNING ] method Listener.PushUnManagedNode returns empty or false
May 26 06:13:26 rhs-c skyring[6164]: [negroni] Started GET /api/v1/events
May 26 06:13:26 rhs-c skyring[6164]: 2016-05-26T06:13:26.069-04:00 INFO     skyring.go:429 LoginRequired] Not Authorized
May 26 06:13:26 rhs-c skyring[6164]: [negroni] Completed 401 Unauthorized in 686.118µs
~~~

Comment 3 Nishanth Thomas 2016-06-23 14:02:09 UTC
Per discussion with JeffA, this is a nice to have and doesn't have any impact on the functionality. So moving to 3.0

Comment 4 Martin Bukatovic 2016-07-01 11:01:33 UTC
Created attachment 1174878 [details]
Firefox network analyzer during opening of RHSC 2.0 login page

Just for a record, attaching screenshot from Firefox network analyzer when I
just opened the login page of RHSC 2.0. Note all  the red requests (401 - not
authorized, 404 - not found).

Tested with rhscon-ui-0.0.42-1.el7scon.noarch

Comment 5 Martin Bukatovic 2016-07-01 11:19:24 UTC
Since this BZ is blocked by BZ 1298539 which has rhscon-2 + flag, asking for
reevaluation of this BZ.


Note You need to log in before you can comment on or make changes to this bug.