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

Register media URLs via regex. #16419

Merged
merged 9 commits into from Oct 6, 2023
Merged

Register media URLs via regex. #16419

merged 9 commits into from Oct 6, 2023

Conversation

clokep
Copy link
Contributor

@clokep clokep commented Oct 2, 2023

This essentially converts the media repo stuff from the Twisted-way of registering resources to the regex way of registering servlets.

I tested this via trying some URLs with v1, v3, r0; testing that options still works, etc.

Vaguely related to #5118.

This is desirable for #15503 where a new endpoint (/create) needs to be registered as v1 & the behavior of /upload is changed for /v3 (to support PUT in addition to POST).

@clokep clokep mentioned this pull request Oct 2, 2023
11 tasks
@clokep clokep marked this pull request as ready for review October 3, 2023 11:57
@clokep clokep requested a review from a team as a code owner October 3, 2023 11:57
@clokep
Copy link
Contributor Author

clokep commented Oct 4, 2023

This should actually be ready for a review now... the changes to the tests are really invasive, but I think they're overall better -- it means that we're not grabbing random resources and shoving requests into them but going through the routing path of Synapse.

Copy link
Member

@erikjohnston erikjohnston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woo!

@clokep clokep merged commit 26b960b into develop Oct 6, 2023
38 checks passed
@clokep clokep deleted the clokep/media-servlet branch October 6, 2023 11:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants