Project

General

Profile

Actions

Defect #3064

closed

When local storage is "broken" IdM will not perform redirect to login and stuck on spinning loading

Added by Roman Kučera about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Roman Kučera
Category:
Authentication / Authorization
Target version:
Start date:
02/18/2022
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:
Story points:
1

Description

This issue occurs in appliance, but it has to be fix in product.
This can occurs when updating from 11.X to 12.X
  • Run IdM 11 in appliance, log in, use it for a while, logout, close tab
  • Upgrade to IdM 12
  • Open tab, go to IdM URL and you are stuck on loading

Broken local storage

{"security":{"userContext":{"id":null,"showLoading":false,"isExpired":false,"username":null,"isAuthenticated":false,"isTryRemoteLogin":false,"tokenCSRF":null,"tokenCIDMST":null,"authorities":[],"profile":null,"navigationCollapsed":false,"originalUsername":null,"twoFactorToken":null}}}


Related issues

Related to IdStory Identity Manager - Defect #3103: Login as other user sometimes failClosedRoman Kučera04/12/2022

Actions
Related to IdStory Identity Manager - Defect #3105: Login page keeps reloading when token expiresClosedRoman Kučera04/20/2022

Actions
Actions #1

Updated by Tomáš Doischer about 2 years ago

  • Sprint set to Sprint 12.2-1 (úno 18 - bře 02)
Actions #2

Updated by Roman Kučera about 2 years ago

  • Story points set to 1
Actions #3

Updated by Roman Kučera about 2 years ago

  • % Done changed from 0 to 70

Fix is in https://github.com/bcvsolutions/CzechIdMng/tree/kucerar/3064-local-storage-loading-fix

This issue is not possible to replicate on local envirnoment.
Only occurs in appliance.
Tested this fix on our appliance 196.

Login into IdM, change the value in local storage to the one from this ticket, close tab, open tab, You should be redirected to CAS correctly or logged in if you are still assigned into CAS

Actions #4

Updated by Roman Kučera about 2 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Roman Kučera to Tomáš Doischer

https://github.com/bcvsolutions/CzechIdMng/pull/176
@doischert Can you do feedback please?

Actions #5

Updated by Roman Kučera about 2 years ago

After further testing, the previous fix was not good. It works in very strange way and and has other bugs.
I reimplement the fix in other way.
Tested it locally and in appliance (196)

Login, logout, switch to another user is working.
Putting broken local storage value into browser is working to - IdM will recover and you are no longer stuck on loading screen.

Changes in same pull request as above.

Actions #6

Updated by Tomáš Doischer about 2 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Tomáš Doischer to Roman Kučera
  • % Done changed from 70 to 100

Thanks for the fix!

I tried the same tests successfully. I also tried accessing a specific URL which worked as well.

Merged to develop.

Actions #7

Updated by Roman Kučera about 2 years ago

  • Status changed from Resolved to Closed
Actions #8

Updated by Roman Kučera about 2 years ago

  • Related to Defect #3103: Login as other user sometimes fail added
Actions #9

Updated by Roman Kučera about 2 years ago

  • Related to Defect #3105: Login page keeps reloading when token expires added
Actions

Also available in: Atom PDF