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

Restore sll error behaviour #9678

Merged
merged 1 commit into from
May 17, 2022
Merged

Restore sll error behaviour #9678

merged 1 commit into from
May 17, 2022

Conversation

TheOneRing
Copy link
Contributor

@TheOneRing TheOneRing commented May 13, 2022

No description provided.

@TheOneRing TheOneRing requested a review from a team May 13, 2022 15:02
@ownclouders
Copy link
Contributor

ownclouders commented May 13, 2022

@TheOneRing TheOneRing force-pushed the work/ignore_all_ssl_errors branch from 4835293 to d493537 Compare May 13, 2022 15:47
@TheOneRing TheOneRing force-pushed the work/ignore_all_ssl_errors branch from d493537 to 4cc418c Compare May 17, 2022 09:05
Copy link
Contributor

@fmoc fmoc left a comment

Choose a reason for hiding this comment

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

Looks good. I'm not a fan of the old behavior, though. Is the idea of storing the error along with the certificate still something we want to realize (even if just long-term)?

@@ -40,6 +42,16 @@ AccessManager::AccessManager(QObject *parent)
setConfiguration(QNetworkConfiguration());
#endif
setCookieJar(new CookieJar);

connect(this, &AccessManager::sslErrors, this, [this](QNetworkReply *reply, const QList<QSslError> &errors) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we make sure this slot is run first using some flag on connect?

Copy link
Contributor

Choose a reason for hiding this comment

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

Thinking about it, maybe we should just debug log all erased errors. That way, whoever will work with this code in the future, will get notified about ignored errors.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@TheOneRing
Copy link
Contributor Author

Looks good. I'm not a fan of the old behavior, though. Is the idea of storing the error along with the certificate still something we want to realize (even if just long-term)?

Please open an issue for 4.0

@TheOneRing TheOneRing merged commit 553c707 into master May 17, 2022
@delete-merged-branch delete-merged-branch bot deleted the work/ignore_all_ssl_errors branch May 17, 2022 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants