matrix-org / matrix-org/matrix-rust-sdk
Sometimes`get_notification_item` for invite notifications returns `403 FORBIDDEN` error
- Dominant language
- Rust
- Stars
- 2.3k
- Forks
- 500
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 106
Description
Here is a log of the error.
This does not happen consistently, but only some times, and only for invite notifications.
Here is a log of the error:
`the server returned an error: [403 / M_FORBIDDEN] User @mauro.romito:matrix.org not in room !rWncTinLEtLXDzUGge:element.io, and room previews are disabled
`
Seems that this happens when trying to fetch the room given its room id from the client in the function.
Contributor guide
Research direction
Start by tracing the get_notification_item function and the room fetch mentioned in the report, using the recorded M_FORBIDDEN error as the reproduction signal. Determine why invite notifications can fetch a room when the user is not a member, then verify that invite notifications no longer produce this 403 error while other notification types remain unaffected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100