Space drop-down does not work for some users

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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.

*Except Fisheye and Crucible

    

Summary

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.

Environment

Server and Data Center.

Diagnosis

  • 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;


Cause

  • 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   }

Solution

  • 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.



Last modified on Dec 1, 2020

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.