OpenSlides / OpenSlides/openslides-backend

File upload: docx files are interpreted as zip

Open
#2,963 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
9
Forks
40
Avg merge
1d 22h
Merged PRs (30d)
19

Description

Describe the bug
Sometimes the upload of a docx file leads to the following error message, indicating that the file is interpreted as a zip:

Fehler: FILENAME.docx does not have a file extension that matches the determined mimetype application/zip.

How to Reproduce

  1. contact me to get the example file
  2. open a meeting, go to files
  3. upload the file

Expected behavior
Ensure that docx files (and other allowed types) can be uploaded.

For example check if OpenSlides might take any other meta information from the file to determine the filetype that is not the file extension.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by obtaining the example DOCX file mentioned in the reproduction steps and reproduce the upload through a meeting's files area. Trace how the backend determines the MIME type versus the file extension, then verify that DOCX and other allowed types upload without the reported mismatch error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.