FR: Support MSC4586: Flag to explicitly persist URL preview assets #2605
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Compliance
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity#2605
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What new feature do you want to see? What problem does it solve?
MSC4586 attempts to resolve a problem where URL preview assets were supposed to be ephemeral, however this was never communicated into the specification, causing diverging behaviours and expectations in clients and servers alike.
4586 will explicitly make URL preview data ephemeral UNLESS the client asks for it to be persistent. This should make cleanup easier, which is currently a TODO in the media service.
Further reading
Additional context
Gomuks has been duplicating media on my server for months >:(
The "compliance" flag is dubious since technically the spec never said to make assets ephemeral, but it was implied by the Synapse implementation doing it before the spec was written. I'll keep it for now.