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

file-upload: Correctly handle error responses for HTTP2 #25569

Merged
merged 1 commit into from
Mar 11, 2021

Conversation

JakubOnderka
Copy link
Contributor

@JakubOnderka JakubOnderka commented Feb 10, 2021

For HTTP2, errorThrown variable can be empty string:

When an HTTP error occurs, errorThrown receives the textual portion of the HTTP status, such as "Not Found" or "Internal Server Error." (in HTTP/2 it may instead be an empty string)
https://api.jquery.com/jquery.ajax/ (jquery/api.jquery.com#1146)

So for Chrome or Safari, that follows HTTP/2 specs, Nextcloud will not parse error message. This makes problem at least for AV plugin – see nextcloud/files_antivirus#119

I would be happy if it is be possible to also apply this patchto version 19.X.

Signed-off-by: Jakub Onderka <ahoj@jakubonderka.cz>
@JakubOnderka JakubOnderka force-pushed the JakubOnderka-patch-1 branch from 8195259 to 296ffc7 Compare March 10, 2021 15:30
@JakubOnderka
Copy link
Contributor Author

PING

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.

👍 looks fine

@ChristophWurst ChristophWurst merged commit 95cddb8 into master Mar 11, 2021
@ChristophWurst ChristophWurst deleted the JakubOnderka-patch-1 branch March 11, 2021 12:54
@kesselb
Copy link
Contributor

kesselb commented Oct 4, 2021

/backport to stable21

@kesselb
Copy link
Contributor

kesselb commented Oct 4, 2021

/backport to stable20

@backportbot-nextcloud
Copy link

The backport to stable21 failed. Please do this backport manually.

@backportbot-nextcloud
Copy link

The backport to stable20 failed. Please do this backport manually.

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.

4 participants