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.

Synapse supports unspecced DELETE /directory/list/room/<room ID> endpoint #13111

Closed
@DMRobertson

Description

@DMRobertson

Synapse supports a DELETE /directory/list/room/<room ID> endpoint which appears to be unspecced. (It's specced with GET and PUT).

async def on_DELETE(
self, request: SynapseRequest, room_id: str
) -> Tuple[int, JsonDict]:
requester = await self.auth.get_user_by_req(request)
await self.directory_handler.edit_published_room_list(
requester, room_id, "private"
)
return 200, {}

Originally posted by @DMRobertson in #13102 (comment)

DELETE is a shortcut for PUTting private visibility. I'd like to either spec it or remove it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Spec-Complianceplaces where synapse does not conform to the specP4(OBSOLETE: use S- labels.) Okay backlog: will not schedule, will accept patchesT-TaskRefactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions