matrix-org / matrix-org/matrix-spec
Clarify if forgiving-base64 is allowed
- Dominant language
- HTML
- Stars
- 330
- Forks
- 150
- Avg merge
- 2h 21m
- Merged PRs (30d)
- 3
Description
Derivative of https://github.com/ruma/ruma/issues/591;
`Construct` sent a base64 string in `signatures` that synapse accepted, it can still be accepted by using [forgiving base64](https://infra.spec.whatwg.org/#forgiving-base64-decode), arguably "non-compliant", yet accepted by https://github.com/matrix-org/python-unpaddedbase64.
Rust crate `base64` snagged on it, and gave a way out with a mention to above link about "forgiving base64", is this allowed per the matrix spec? If so, I think a comment should be made about that.
Contributor guide
Research direction
Read the linked Matrix issue #591 and the Matrix specification around handling base64 strings in `signatures`, then compare the relevant requirement with the forgiving base64 behavior linked in the issue. Determine whether the spec permits this behavior; if it does, document that clarification in the relevant specification text. Done means the spec clearly resolves whether forgiving base64 is allowed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, rust
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100