Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.msg files cannot be uploaded #4795

Open
LaurensBurger opened this issue Oct 25, 2024 · 2 comments · May be fixed by #4961
Open

.msg files cannot be uploaded #4795

LaurensBurger opened this issue Oct 25, 2024 · 2 comments · May be fixed by #4961
Assignees
Labels
bug Something isn't working owner: utrecht

Comments

@LaurensBurger
Copy link
Collaborator

LaurensBurger commented Oct 25, 2024

Product versie / Product version

tested on 2.7.x 2.8.x

Customer reference

Utr 306

Omschrijf het probleem / Describe the bug

Sentry: 313314

When uploading a .msg file and after navigating to the next step the upload component shows a error:
image

ValidationError {'data': {'bestandsupload': {0: {'type': [ErrorDetail(string="Het bestandstype kon niet bepaald worden. Controleer of de bestandsnaam met een extensie eindigt (bijvoorbeel '.pdf' of '.png').", code='blank')]}}}}

Tested with multiple OSes, and multiple files and environments.

@LaurensBurger LaurensBurger added bug Something isn't working triage Issue needs to be validated. Remove this label if the issue considered valid. labels Oct 25, 2024
@joeribekker
Copy link
Contributor

Resembles #4773

@joeribekker joeribekker removed the triage Issue needs to be validated. Remove this label if the issue considered valid. label Oct 28, 2024
@sergei-maertens sergei-maertens self-assigned this Dec 19, 2024
@sergei-maertens
Copy link
Member

I'll provide a .msg file

@robinmolen robinmolen moved this from Todo to In Progress in Development Dec 19, 2024
@sergei-maertens sergei-maertens removed their assignment Dec 19, 2024
robinmolen added a commit that referenced this issue Dec 19, 2024
The sdk cannot determine which content type belongs to a .msg file. This is because (at least) Linux and MacOS don't know this file type.

To make sure these files can be uploaded, the type property on the FileSerializer is now optional. For .smg files a new rule has been added to the MimeTypeValidator
@robinmolen robinmolen linked a pull request Dec 19, 2024 that will close this issue
10 tasks
robinmolen added a commit that referenced this issue Dec 19, 2024
@robinmolen robinmolen moved this from In Progress to Implemented in Development Dec 19, 2024
@robinmolen robinmolen moved this from Implemented to In Progress in Development Dec 19, 2024
robinmolen added a commit that referenced this issue Dec 23, 2024
The sdk cannot determine which content type belongs to a .msg file. This is because (at least) Linux and MacOS don't know this file type.

To make sure these files can be uploaded, the type property on the FileSerializer is now optional. For .smg files a new rule has been added to the MimeTypeValidator
robinmolen added a commit that referenced this issue Dec 23, 2024
robinmolen added a commit that referenced this issue Dec 23, 2024
The sdk cannot determine which content type belongs to a .msg file. This is because (at least) Linux and MacOS don't know this file type.

To make sure these files can be uploaded, the type property on the FileSerializer is now optional. For .smg files a new rule has been added to the MimeTypeValidator
robinmolen added a commit that referenced this issue Dec 23, 2024
robinmolen added a commit that referenced this issue Dec 23, 2024
robinmolen added a commit that referenced this issue Dec 23, 2024
robinmolen added a commit that referenced this issue Dec 23, 2024
@robinmolen robinmolen moved this from In Progress to Implemented in Development Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working owner: utrecht
Projects
Status: Implemented
Development

Successfully merging a pull request may close this issue.

4 participants