Space drop-down does not work for some users

お困りですか?

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

コミュニティに質問

プラットフォームについて: 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 users click on the Spaces menu, it does not show the recently visited spaces. These users will not be able to create spaces as the "Create Space" option is only shown when that menu is clicked.

環境

Server and Data Center.

診断

  • Users will not be able to expand the Spaces menu as shown in the picture below:

  • The atlassian-confluence.log will show:
2020-11-04 15:43:18,675 ERROR [http-nio-8090-exec-10] [rest.api.model.ExceptionConverter] convertServiceException No status code found for exception, converting to internal server error :
-- url: /rest/ia/1.0/spacesmenu | traceId: c6054b4589bdb25a | userName: admin
java.lang.NullPointerException: null value in entry: name=null
at com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:32
  • The following query will return one or more rows:
select * from spaces where spacename is null;


原因

  • One or more spaces does not have a spacename value.  Since the spacename is required, the drop-down menu will not work properly:

    95    private Map<String, String> getSpaceItem(final Space space) {
    96        return ImmutableMap.of(
    97                "name", space.getName(),
    98                "key", space.getKey(),
    99                "href", space.getDeepLinkUri().toString(),
    100               "logo", spaceLogoManager.getLogoUriReference(space, AuthenticatedUserThreadLocal.get()));
    101   }

ソリューション

  • Update the SPACES table and manually add a spacename value per the steps below:

Backup the database before performing the following steps


  1. Locate the SPACEID's of the spaces with a null spacename:

    select * from spaces where spacename is null;

    (info) Take note of the ID column

  2. Manually update the spacename value with the query below:

    update spaces set spacename = 'Space' where spaceid = <spaceid>;
    1. Replace <spaceid> field for the appropriate ID.

  3. Restart Confluence and rebuild the indexing of the content.



最終更新日: 2020 年 12 月 1 日

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

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