Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

/_matrix/client/r0/profile returns 404 if only displayname is not set #16000

@weeman1337

Description

@weeman1337

Description

If a user has been created without a displayname, requests are sent to /_matrix/client/r0/profile return a 404 response.

Steps to reproduce

  • Create a user without displayname but an avatar
  • Try to get the profile for the user

Expected: got a response with empty displayname
What happens: 404

Homeserver

matrix.jamesdemo.ems-support-self-serve.element.io

Synapse Version

1.84.0

Installation Method

I don't know

Database

I don't know

Workers

I don't know

Platform

EMS

Configuration

No response

Relevant log output

-

Anything else that would be useful to know?

Link to source

if profileinfo.display_name is None:

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ProfilesDisplaynames, avatarsO-UncommonMost users are unlikely to come across this or unexpected workflowS-TolerableMinor significance, cosmetic issues, low or no impact to users.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions