Foreword: I was unable to create an issue in bug tracker due an rights permissions error.
Some spaces are not displayed in Space directory. I have discovered that this is connected with LDAP synchronization settings. Next, I will talk about the setting: USERS & SECURITY -> Configure LDAP User Directory -> LDAP Permissions.
If the LDAP Permissions is set to "Read Only" then the bug occurs.
If the LDAP Permissions is set to "Read Only, with Local Groups" then the bug is gone.
System details:
Thanks!