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.

500 TypeError: unhashable type: 'dict' when setting membership state with non-string avatar_url #14321

@DMRobertson

Description

@DMRobertson

https://sentry.tools.element.io/organizations/element/issues/39942/?project=2&query=is%3Aunresolved&statsPeriod=24h

Someone called PUT /_matrix/client/r0/rooms/!REDACTED%3Amatrix.org/state/m.room.member/%40REDACTED%3Amatrix.org with content of the form

{avatar_url: {content_uri: 'REDACTED'}, displayname: 'REDACTED, is_direct: False, membership: 'join'}

The avatar_url is malformed: it should be a string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Validation500 (mostly) errors due to lack of event/parameter validationO-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.Z-SentryIssue was discovered by looking at Sentry reports on Matrix.org

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions