Find places where we don't/shouldn't need to crash from unwrap/expect/panic and fix those #36
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
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 project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity#36
Loading…
Add table
Add a link
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?
This codebase seems to rely on a pinky-promise that the system it's running on is 100% perfect with no errors, and relies on clients being 100% implement correctly, with the absurd amount of .expect() and .unwrap()'s it has.
Some of these have resulted in potential denial of service vectors, random unexplainable crashes, and I'm pretty certain this is why gradual database corruption occurs even on shutdowns. The RocksDB WAL recovery mode to ignore corrupted tail records just shows the problem in the form of temporary federation issues.
Upstream and said community/contributors are keen on keeping this unusual behaviour, so getting this fixed upstream without making a PoC showing it can be used for remote denial of service isn't really possible.
This is a pretty open-ended issue with no clear direction or goal, and was made in December 2023.
Significant codebase improvements, cleanup, fixes, etc have been done and are still being done.