Unable to remove users from Project role

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: 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 は除く

 

 

問題

Unable to remove user from any project. When another user tried to delete the affected user, JIRA will momentarily refresh itself but the user will not be removed. There will not be any error logged in logs and also in browser console.

 

診断

Check from projectroleactorapp_user and cwd_user tables from JIRA's database to see whether the username contains any whitespace. Eg: <'test.user '>. We can search for the affected user from JIRA's database using the similar SQL query shown below:

 

select * from app_user where user_key like '% '

 

 

If the XML backup is available, we can extract the backup and run the grep command below:

 

grep "\"username \"" *

 

原因

This problem is caused by by the user with spaces but only in the user_key in the app_user table. Basically, instead of saving entry of <'test.user'>, the username is stored as <'test.user '>..

 

ソリューション

To fix this problem , we'll have to update the username was stored as <'test.user '> to <'test.user'> from database. From the grep command earlier, we can get all the tables where the username was stored as <'test.user '> to <'test.user'>. Based on the information, we can run the following SQL query:

 

 Please backup your JIRA before applying the solution.

1. Stop your JIRA.
2. Run all the SQL queries below to update the <'test.user '> to <'test.user'>;

update app_user set user_key = 'test.user' where user_key = 'test.user ';


3. Restart your JIRA and re-index it.

 

If the username with whitespace is shown in other tables, update those entries from database as well.

Last modified on Mar 6, 2017

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.