Pushing text files result in a wrong mime type error
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start with the Matrix media v3 upload path and the content scanner handling for the curl request using Content-Type: text/plain. Trace how the uploaded text file's MIME type becomes text/plain; charset=UTF-8, then verify that scanning and retrieval accept the same type without the mismatch error.
Written by the indexing model from the issue text.
Description
Describe the bug
Using the following curl command :
curl -k -H 'Host: synapse.dev.local' -X POST --header 'Authorization: Bearer {user_access_token}' --header 'Content-Type: text/plain' --data-binary <text file> 'https://localhost/_matrix/media/v3/upload
When getting the file, Matrix content scanner returns the following error :
2023-09-27 16:21:04,922 - matrix_content_scanner.scanner.scanner - 518 - ERROR - GET-1348 - Mismatching MIME type (text/plain) and Content-Type header (text/plain; charset=UTF-8)
- Dominant language
- Python
- Stars
- 25
- Forks
- 16
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 12
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from element-hq/matrix-content-scanner-python
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
element-hq/matrix-content-scanner-python#162 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 20/100
element-hq/matrix-content-scanner-python#78 · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
element-hq/matrix-content-scanner-python#77 · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in element-hq/matrix-content-scanner-python
Similar issues
-
area: harness bug status: needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Human-Agent-Society/reef#625 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 1/5 Under an hour Newbie friendliness 80/100
learningequality/kolibri#15351 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Name consistency Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
eellak/triplestore#65 · 1 comment ·