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

FIX(client): CrashReporter considering 2xx codes as errors #4929

Merged

Conversation

Krzmbrzl
Copy link
Member

Apparently nobody has told Qt that 2xx HTTP status codes are considered
success. Therefore checking QNetworkReply::error() in order to check
whether the transfer was successful, does not work.

Instead this commit makes sure that the raw HTTP status code is checked
instead and if it is in range [200,299], the sending of the report is
considered a success.

Furthermore this commit reworks the Strings displayed to the user as
these were excessively long. These formulations have been replaced with
(hopefully) more concise versions.

Fixes #4928

Checks

@Krzmbrzl Krzmbrzl added client bug A bug (error) in the software labels Apr 13, 2021
Apparently nobody has told Qt that 2xx HTTP status codes are considered
success. Therefore checking QNetworkReply::error() in order to check
whether the transfer was successful, does not work.

Instead this commit makes sure that the raw HTTP status code is checked
instead and if it is in range [200,299], the sending of the report is
considered a success.

Furthermore this commit reworks the Strings displayed to the user
(message box) as these were excessively long. These formulations have
been replaced with (hopefully) more concise versions.

Fixes mumble-voip#4928
@Krzmbrzl Krzmbrzl force-pushed the fix-crash-reporter-success-check branch from e95d3b3 to affc426 Compare April 13, 2021 08:43
@Krzmbrzl Krzmbrzl requested a review from Kissaki April 13, 2021 08:43
@Krzmbrzl Krzmbrzl merged commit ae3cc1e into mumble-voip:master Apr 16, 2021
@Krzmbrzl Krzmbrzl deleted the fix-crash-reporter-success-check branch November 9, 2022 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug (error) in the software client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash Upload Failed
2 participants