-
Notifications
You must be signed in to change notification settings - Fork 670
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
OAuth account wizard breaks when back button is used #6574
Comments
Huh. I cannot reproduce it anymore. I'm genuinely confused as to why it got reenabled for me. |
I can reproduce! It gets re-enabled when there is an error at the last step. |
When there is an error, OwncloudAdvancedSetupPage::updateStatus and others call completeChanged() , which is connected to QWizardPrivate::_q_updateButtonStates which will re-enable the back button We re-open the browser, but the account's credentials already have a oauth token set. So the call to the API to get a new token fails because we use the previous token instead of using the client's secret_id. Edit: Even if we fix to send properly the secrer_id, then, the next PROPFIND will still fails with a 401. Probably because the server is confused by all the session cookies. |
…again Issue #6574 When there is an error in the advanced page, OwncloudAdvancedSetupPage::updateStatus (and others) call completeChanged(), which is connected to QWizardPrivate::_q_updateButtonStates which will re-enable the back button from the last page. When the user click "back" and re-open the browser, the account's credentials already have a oauth token set. So the call to the API to get a new token fails because we use the previous token instead of using the client's secret_id. Fix this with the HttpCredentials::DontAddCredentialsAttribute. Now, this is still not working because the session cookies are confusing the server. So we'll clear the cookies when re-opening the browser
…again Issue #6574 When there is an error in the advanced page, OwncloudAdvancedSetupPage::updateStatus (and others) call completeChanged(), which is connected to QWizardPrivate::_q_updateButtonStates which will re-enable the back button from the last page. When the user click "back" and re-open the browser, the account's credentials already have a oauth token set. So the call to the API to get a new token fails because we use the previous token instead of using the client's secret_id. Fix this with the HttpCredentials::DontAddCredentialsAttribute. Now, this is still not working because the session cookies are confusing the server. So we'll clear the cookies when re-opening the browser
…again Issue #6574 When there is an error in the advanced page, OwncloudAdvancedSetupPage::updateStatus (and others) call completeChanged(), which is connected to QWizardPrivate::_q_updateButtonStates which will re-enable the back button from the last page. When the user click "back" and re-open the browser, the account's credentials already have a oauth token set. So the call to the API to get a new token fails because we use the previous token instead of using the client's secret_id. Fix this with the HttpCredentials::DontAddCredentialsAttribute. Now, this is still not working because the session cookies are confusing the server. So we'll clear the cookies when re-opening the browser
2.5.0 beta1 is out :-) |
linux mint taratestpilotcloud version 2.5.0daily20180801 (build 9974)
The client window disappears when the browser is shown. Left-Click on the tray icon brings it back. The first backbutton is always enabled OK: connect successful Choose what to sync. Select one folder, visit the web interface, and rename that folder Switch to 'Manually create folder sync connections" -> the second back button gets enabled. OK: connect successful. |
The cookies are required by the load balancer and there for a reason. Since owncloud#6574 we fixed the back button in owncloud#8056 .
The cookies are required by the load balancer and there for a reason. Since owncloud#6574 we fixed the back button in owncloud#8056 . Fixes: owncloud#8072
Steps:
Note that the back button starts out as disabled but can be enabled by changing the folder sync type.
@ogoffart @SamuAlfageme
The text was updated successfully, but these errors were encountered: