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

[stable23] Fix handling of internal errors when uploading theming files #33799

Merged
merged 1 commit into from
Sep 27, 2022

Conversation

backportbot-nextcloud[bot]
Copy link

backport of #33332

When a file can not be uploaded in the Theming app due to an expected
error (like an invalid mime type) the response contains a "data.message"
field. However, if the upload fails due to an unexpected error (like an
internal error, for example if the "mime_content_type" function is
disabled) there is no such field, so it should not be used.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@blizzz blizzz mentioned this pull request Sep 27, 2022
@blizzz blizzz added the 3. to review Waiting for reviews label Sep 27, 2022
@blizzz blizzz merged commit 19603fe into stable23 Sep 27, 2022
@blizzz blizzz deleted the backport/33332/stable23 branch September 27, 2022 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants