You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/09/12 12:55:20 UTC

[GitHub] [cloudstack] vdombrovski opened a new issue, #6731: UI: Login failed after session timeout

vdombrovski opened a new issue, #6731:
URL: https://github.com/apache/cloudstack/issues/6731

   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   UI
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main branch.
   -->
   
   ~~~
   4.17.0.1
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   N/A
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   N/A
   
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   After a session timeout, the user is returned to the login screen. Whatever credentials are entered, the login will always fail with "Login failed", until the page is reloaded.
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   Log into your Cloudstack account
   Wait for session timeout (whenever a click returns you to the login screen)
   Try to log in again
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   Successful login with valid credentials
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   "Login failed" error message
   ~~~
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] shwstppr commented on issue #6731: UI: Login failed after session timeout

Posted by GitBox <gi...@apache.org>.
shwstppr commented on issue #6731:
URL: https://github.com/apache/cloudstack/issues/6731#issuecomment-1251937778

   @utchoang will check. I was able to reproduce similar console error with an installed env. Though same error is not seen in dev run using `npm run serve`


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] rohityadavcloud closed issue #6731: UI: Login failed after session timeout

Posted by GitBox <gi...@apache.org>.
rohityadavcloud closed issue #6731: UI: Login failed after session timeout
URL: https://github.com/apache/cloudstack/issues/6731


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] shwstppr commented on issue #6731: UI: Login failed after session timeout

Posted by GitBox <gi...@apache.org>.
shwstppr commented on issue #6731:
URL: https://github.com/apache/cloudstack/issues/6731#issuecomment-1247778351

   @utchoang not sure if the same issue but I was able to reproduce something similar. But this was seen only on installed env and I was not able to reproduce when UI is run locally with `npm run serve`.
   [UI Login Failure.webm](https://user-images.githubusercontent.com/153340/190357591-65daab46-bcca-4005-99a4-aa36577d61e9.webm)
   Could be related to #5633


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] utchoang commented on issue #6731: UI: Login failed after session timeout

Posted by GitBox <gi...@apache.org>.
utchoang commented on issue #6731:
URL: https://github.com/apache/cloudstack/issues/6731#issuecomment-1247508160

   Hi. I tried with the latest 4.17 but no error like above. Can you give me a picture or video of the steps to make the above error?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] bragonznx commented on issue #6731: UI: Login failed after session timeout

Posted by GitBox <gi...@apache.org>.
bragonznx commented on issue #6731:
URL: https://github.com/apache/cloudstack/issues/6731#issuecomment-1246489194

   Hi
   I can confirm Vladimir behavior, I have the same issue
   +1


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] kohrar commented on issue #6731: UI: Login failed after session timeout

Posted by GitBox <gi...@apache.org>.
kohrar commented on issue #6731:
URL: https://github.com/apache/cloudstack/issues/6731#issuecomment-1262855173

   I'd like to report the same issue on 4.17.0.1 and I can reproduce it reliably (I think).
   
   I'm able to log in and log out as expected. However, if I navigate to the profile page (this seems to trigger it reliably), then log out, I'm unable to log in again unless I do a full page reload. When this does happen, the login page will show a notification stating "Unauthorized / Session expired, authorization verification failed."
   
   Working:
   ![working](https://user-images.githubusercontent.com/4450716/193148782-8e99ed8f-7b61-4744-a620-b9acc570f3d3.gif)
   
   Broken. Only difference is I navigate to the profile page before logging out:
   ![broken](https://user-images.githubusercontent.com/4450716/193148776-046291be-48a0-437c-9977-95d05431697c.gif)
   
   
   Are you able to replicate this issue on your end?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] rohityadavcloud commented on issue #6731: UI: Login failed after session timeout

Posted by GitBox <gi...@apache.org>.
rohityadavcloud commented on issue #6731:
URL: https://github.com/apache/cloudstack/issues/6731#issuecomment-1252046322

   Could you try an installed version of 4.17.0.1 and also 4.17.1.0 @shwstppr ?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] shwstppr commented on issue #6731: UI: Login failed after session timeout

Posted by GitBox <gi...@apache.org>.
shwstppr commented on issue #6731:
URL: https://github.com/apache/cloudstack/issues/6731#issuecomment-1247925354

   @utchoang I was using an env from 4.17 branch. Will try to check and see if I can provide something useful


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] utchoang commented on issue #6731: UI: Login failed after session timeout

Posted by GitBox <gi...@apache.org>.
utchoang commented on issue #6731:
URL: https://github.com/apache/cloudstack/issues/6731#issuecomment-1247873885

   @shwstppr Your problem I'm not sure is the same as @AA's. But in your case, for the main branch, there is an error from `Console.vue`, which causes error and does not initialize sourceToken (image below). 
   ![image](https://user-images.githubusercontent.com/13766648/190375330-fb980356-f3fc-4907-a26a-d4f94db6df16.png)
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] shwstppr commented on issue #6731: UI: Login failed after session timeout

Posted by GitBox <gi...@apache.org>.
shwstppr commented on issue #6731:
URL: https://github.com/apache/cloudstack/issues/6731#issuecomment-1249357448

   @rohityadavcloud I guess not a blocker because login starts working (atleast in my tests) once refresh the page in browser.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] vdombrovski commented on issue #6731: UI: Login failed after session timeout

Posted by GitBox <gi...@apache.org>.
vdombrovski commented on issue #6731:
URL: https://github.com/apache/cloudstack/issues/6731#issuecomment-1249254702

   Did some more testing; Here is a way to reproduce one of the possible issues:
   
   1. Open 2 tabs inside your browser and go to login page on both
   2. Log into ACS with your user on one tab
   3. Try to log into ACS with the same (or any user) from another tab
   4. Your page will display 'Login failed', and in the console you will be getting "Uncaught (in promise) r {message: undefined}"
   
   Tried on 4.17.0.1, didn't try any other releases.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] DaanHoogland commented on issue #6731: UI: Login failed after session timeout

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #6731:
URL: https://github.com/apache/cloudstack/issues/6731#issuecomment-1243884251

   @vdombrovski I tried with latest from 4.17 branch and I can log on immediately after timeout, without cache clean, reload or anything.
   Can you try latest?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] rohityadavcloud commented on issue #6731: UI: Login failed after session timeout

Posted by GitBox <gi...@apache.org>.
rohityadavcloud commented on issue #6731:
URL: https://github.com/apache/cloudstack/issues/6731#issuecomment-1249313032

   @shwstppr sounds like a blocker/critical issue?
   @vdombrovski does it help if you clean your site data (I use Chrome -> developer tools -> Application tab -> clear site data)?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] utchoang commented on issue #6731: UI: Login failed after session timeout

Posted by GitBox <gi...@apache.org>.
utchoang commented on issue #6731:
URL: https://github.com/apache/cloudstack/issues/6731#issuecomment-1250491471

   I tried following steps like @vdombrovski but didn't notice the problem. Maybe I'm doing it wrong or maybe it's a browser bug (I did it on Chrome Version 105.0.5195.102). @shwstppr can you make the same error :(
   ![check_error_login](https://user-images.githubusercontent.com/13766648/190942540-8d366ff8-4e10-4fc3-8e6c-d5dee9f4c849.gif)


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] kohrar commented on issue #6731: UI: Login failed after session timeout

Posted by GitBox <gi...@apache.org>.
kohrar commented on issue #6731:
URL: https://github.com/apache/cloudstack/issues/6731#issuecomment-1262871501

   I think there's something in the UI code that's requesting for `listResourceIcon` _after_ the logout occurs in some instances which triggers this issue.
   
   After navigating to the profile page and logging out, I see that the browser sent the following request, only to get a 401 Unauthorized reply, which then causes an unhandled JS exception which then breaks the UI.
   
   ```
   GET /client/api/?resourceids=a03c9ece-9b15-4638-a1d4-ee9e05edf81f&resourcetype=domain&command=listResourceIcon&response=json HTTP/1.1
   ```
   
   JS Console shows:
   ```
          Uncaught (in promise) Error: Request failed with status code 401
       at e.exports (createError.js:16:15)
       at e.exports (settle.js:17:12)
       at XMLHttpRequest.c (xhr.js:54:7)
   ```
   
   Subsequent login attempts just error out immediately, without any HTTP requests ever being made.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org