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

Check basic auth credentials in wizard #9697

Merged
merged 3 commits into from
May 20, 2022

Conversation

fmoc
Copy link
Contributor

@fmoc fmoc commented May 19, 2022

This way, users don't unexpectedly have to re-login after the wizard completes if they entered the wrong credentials.

Fixes #9623.

Please note that there is one issue which I haven't been able to fully resolve. When moving back from the last page to the second one, the wizard re-checks the auth type (which should not be necessary but also shouldn't hurt). For some reason, this time, the lookup fails. You can move forward from the first page just fine, though, and the lookup works again.

@fmoc fmoc added this to the 3.0 milestone May 19, 2022
@fmoc fmoc requested a review from a team May 19, 2022 09:24
@fmoc fmoc marked this pull request as draft May 19, 2022 09:24
@ownclouders
Copy link
Contributor

ownclouders commented May 19, 2022

Results for GUI-tests https://drone.owncloud.com/owncloud/client/11851/6/1

💥 The GUI tests failed.

GUI Logs: https://cache.owncloud.com/public/owncloud/client/11851/guiReportUpload/index.html

Server Logs: https://cache.owncloud.com/public/owncloud/client/11851/guiReportUpload/serverlog.log

Screenshots:

@fmoc fmoc marked this pull request as ready for review May 19, 2022 11:56
src/gui/newwizard/jobs/checkbasicauthjobfactory.cpp Outdated Show resolved Hide resolved
src/gui/newwizard/jobs/checkbasicauthjobfactory.cpp Outdated Show resolved Hide resolved
@@ -189,6 +187,11 @@ void SetupWizardController::nextStep(std::optional<PageIndex> currentPage, std::
});

connect(messageBox, &QMessageBox::accepted, this, [this, showFirstPage]() {
// when moving back to this page (or retrying a failed credentials check), we need to make sure existing cookies
Copy link
Member

Choose a reason for hiding this comment

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

Is this triggered every time we go back or only when we displayed an error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Every time the page is instantiated.

Fabian Müller added 3 commits May 20, 2022 13:09
This way, users don't unexpectedly have to re-login after the wizard completes if they entered the wrong credentials.
@fmoc fmoc force-pushed the work/check-basic-auth-creds-in-wizard branch from 5613bea to 1c765a3 Compare May 20, 2022 11:09
@TheOneRing TheOneRing merged commit 191a4a9 into master May 20, 2022
@delete-merged-branch delete-merged-branch bot deleted the work/check-basic-auth-creds-in-wizard branch May 20, 2022 11:28
@sonarcloud
Copy link

sonarcloud bot commented May 20, 2022

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 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

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.

Check whether basic credentials work in wizard
3 participants