Description of problem:
Version-Release number of selected component (if applicable):
Build Number :
Steps to Reproduce:
1. log in to your rhq server
2. open a new browser tab and go to the url of your rhq server (http://<yourRHQserver>:7080)
A login page is shown for a while (~ 1-2 seconds) and then you are redirected to http://<yourRHQserver>:7080/coregui/
Login page should not be visible when you are already logged in.
A) It's not "~ 1-2 seconds" but couple milliseconds on my laptop
B) One should access "http://<yourRHQserver>:7080/coregui/" instead of "http://<yourRHQserver>:7080/" that contains a redirect to "http://<yourRHQserver>:7080/coregui/login" (that's why you see the login page for a moment)
C) It is a trade-off between the two following situations, lets call them I and II.
I. having this redirect as the current implementaion has, i.e.
* when not logged in it is 1 redirect (/ -> /coregui/login)
* when logged in: 2 redirects (/ -> /coregui/login -> /coregui)
II. having it vice-versa, i.e.
* when not logged in: 2 redirects (/ -> /coregui/ -> /coregui/login)
* when logged in: 1 redirect (/ -> /coregui/)
I would appreciate any input here.
To some extent, I agree, it can be done by II scenario. Code-wise it is a 1 liner, but then there will be 2 redirects when user is not logged in. The login process is simply different as it was before, because there is a new pure-HTML page because of the PatternFly LnF.
Either way, I is a minor one.
The current impl. has 1 significant flaw that is the blue screen which blinks during the 2-redirects scenario.
The suggested approach (II) does the same, but the intermediate page is blank, so it is less evil to me.
time: 2014-05-15 15:04:29 +0200
author: Jirka Kremser - email@example.com
message: [BZ 1097106] - Login page is shown for a while even when you are already
logged in - Redirecting from / to /coregui not to
/coregui/login, because if user is logged in she sees the
Build Number :
Bulk close of items fixed in RHQ 4.12
If you think this is not solved, then please open a *new* BZ and link to this one.