User goes inactive with User Switcher for Jira app
Platform Notice: Data Center Only - This article only applies to Atlassian apps on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
In Jira, the users are marked as inactive at random intervals. However, the Jira database and the Crowd application seem to show correct data.
Environment
Any version of Jira integrated with Crowd
Diagnosis
A user TestA is being marked as inactive randomly. The user is switched by using the User Switcher for Jira which is a third-party application that causes the Crowd "Register Failure" issues.
2022-05-23 21:32:43,319+0200 http-nio-8080-exec-13 url: /rest/schizophrenia/1.0/switchuser/switch/TestA; user: TestB WARN TestB 1292x964x1 1wxbxau 123.45.35.25 /rest/schizophrenia/1.0/switchuser/switch/TestA [c.t.j.p.schizophrenia.component.DefaultSwitchUserService] user 'TestB' switched to user 'TestA'
2022-05-23 21:32:44,199+0200 http-nio-8080-exec-23 url: /secure/404.jspa WARN - [c.a.j.w.action.util.Error404] Detected anonymous access to page <http://localhost:8080/plugins/servlet> redirecting to login page
2022-05-23 21:32:50,201+0200 http-nio-8080-exec-16 url: /secure/404.jspa WARN - [c.a.j.w.action.util.Error404] Detected anonymous access to page <http://localhost:8080/plugins/servlet> redirecting to login page
2022-05-23 21:32:56,208+0200 http-nio-8080-exec-8 url: /secure/404.jspa WARN - [c.a.j.w.action.util.Error404] Detected anonymous access to page <http://localhost:8080/plugins/servlet> redirecting to login page
2022-05-23 21:36:56,741+0200 http-nio-8080-exec-4 url: /plugins/servlet/streams; user: TestA WARN TestA 1296x2456x1 1wxbxau 123.45.35.25 /plugins/servlet/streams [c.a.streams.internal.StreamsCompletionService] Registering failure for stream provider Crowd Server due to error other
2022-05-23 21:37:02,206+0200 http-nio-8080-exec-1 url: /secure/404.jspa WARN - [c.a.j.w.action.util.Error404] Detected anonymous access to page <http://localhost:8080/plugins/servlet> redirecting to login page
2022-05-23 21:37:04,054+0200 http-nio-8080-exec-17 url: /rest/schizophrenia/1.0/switchuser/switch/TestB; user: TestA WARN TestA 1297x2486x1 1wxbxau 123.45.35.25 /rest/schizophrenia/1.0/switchuser/switch/TestB [c.t.j.p.schizophrenia.component.DefaultSwitchUserService] user 'TestB' switched back to themselves from user 'TestA'After repeated actions, userTestBturns out to be inactive.
The HTTP dump logs also observe that the user becomes inactive when userTestBis switches toTestA. Below is the corresponding HTTP dump log snippet.
Response HTTP Headers : X-AUSERNAME=TestB Response Data (total 8733 bytes) : <html><head><title>User Profile: Vicens Torres, Jaume [X]</title></head><body><header class="aui-page-header"><div class="aui-page-header-inner"><div class="aui-page-header-image"><div class="aui-avatar aui-avatar-large"><div class="aui-avatar-inner"><img alt="Avatar for ABC DE" src="http://jira.com:8080/secure/useravatar?ownerId=TestA&avatarId=11324" /></div></div></div><div class="aui-page-header-main"><h1 id="up-user-title"><span id="up-user-title-name">ABC DE</span> (Inactive)</h1></div>
Cause
Using the third-party application User Switcher for Jira causes this as the issue cannot be reproduced when the application is not used.
Solution
Uninstall User Switcher for Jira or disable the application from Administration > Manage Apps
Was this helpful?