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

お困りですか?

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

コミュニティに質問

プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。

このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および Crucible は除く

症状

  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.
最終更新日: 2025 年 1 月 9 日

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

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