"User Does not Exist" JQL Exception even when Providing Valid Users

お困りですか?

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

コミュニティに質問

症状

  1. You perform a search in JQL providing a specific user but it tells that the user does not exist.
  2. If you append a space in the user name suffix, it works.
  3. It's possible to see the user at Administration -> User, Groups & Roles -> User Browser.
  4. You're using external Crowd integration.
  5. Anything appears in logs.

原因

In a few upgrade/usage cases, due to unknown reasons, some spaces are inserted in the user name directly on the database. It makes the username unrecognized for the JIRA instance when performing searches.

ソリューション

データベースの変更を行う場合は 必ず事前にバックアップを取得してください。可能な場合はテスト サーバーで変更を試すことをおすすめします。

  1. Stop JIRA/Crowd.
  2. Perform the following in both databases.
  3. Run this SQL query to identify which users have invalid names:

    select * from cwd_user where length(user_name) != length(trim(user_name));

    For MSSQL use the following SQL query:

    select * from cwd_user where LEN(user_name) != LEN(RTRIM(LTRIM(user_name)));
  4. Replace the broken names (containing additional space) with the correct ones:

    update cwd_user set user_name='user' where user_name='user ';
    update cwd_membership set child_name='user', lower_child_name='user' where child_name='user  ';
  5. Start JIRA/Crowd and verify if the issue get fixed.
最終更新日: 2016 年 2 月 26 日

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

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