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

[stable24] Fix handling of internal errors when uploading theming files #33798

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>
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@blizzz blizzz mentioned this pull request Sep 6, 2022
@blizzz blizzz mentioned this pull request Sep 27, 2022
@blizzz blizzz added the 4. to release Ready to be released and/or waiting for tests to finish label Sep 27, 2022
@blizzz blizzz merged commit bd9ab80 into stable24 Sep 27, 2022
@blizzz blizzz deleted the backport/33332/stable24 branch September 27, 2022 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: theming
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants