Bitbucket server shows "You've switched users" error message when managing account
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
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.
*Fisheye および Crucible は除く
問題
When making any change in the Manage Account page e.g. SSH keys or Notification settings it shows an error message "You've switched users"
The following appears in the Error message.
You've switched users
You logged out as <user> and logged in as <anotherUser>.Please refresh the page to avoid seeing inconsistent information
Popup message as below:
原因
If the Bitbucket server is running behind a reverse proxy, this issue may be related to proxy's caching settings for the Bitbucket Server URL. To confirm, try accessing Bitbucket server bypassing the reverse proxy.
回避策
Bypass the reverse proxy as mentioned in How do I bypass a proxy for Bitbucket Server
ソリューション
Check the reverse proxy caching settings for Bitbucket server URL and disable it.