Fix login flow by avoiding manual redirect policy on macOS client#9861
Fix login flow by avoiding manual redirect policy on macOS client#9861KarstenH792 wants to merge 1 commit into
Conversation
8c455b4 to
7ff9f54
Compare
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
|
Just checking if someone could take a quick look at this. The fix has been tested locally and resolves the login issue for me. Happy to adjust if needed. |
Signed-off-by: Karsten Hoehn <git@karstenhoehn.net>
7ff9f54 to
aeb9f0f
Compare
|
Just checking in again on this PR. I checked the current official v33.0.5 source, and the relevant code path still uses The proposed change is still minimal: switching this request policy to In my local testing, this resolves the login/setup failure while keeping the rest of the client behavior unchanged:
I would appreciate a quick indication whether this approach is acceptable, or whether maintainers would prefer a different fix. |
|
@nilsding sorry to ping directly, but you seem to be the author of the recent I checked v33.0.5 and the relevant code path still uses I have a reproducible macOS setup where:
Could you advise whether this approach is acceptable, or whether you would prefer a different fix to preserve the intent of the manual redirect handling? |
|
@KarstenH792 do you have logs that could explain what is happening differently ? |
|
Hi @mgallien, thanks for looking into this, and sorry for the delay in getting back to you, but I didn't had time before the weekend to reproduce the logs. I reproduced the issue with v33.0.5 and captured logs, but I would prefer not to attach the full logs publicly because they contain too much personal/server-specific information. Relevant redacted extract from v33.0.5: For comparison, relevant redacted extract from the working 4.0.2 client on the same machine/server/network path: So the behavioural difference appears to be: This was after upgrading an existing working 4.0.2 setup to 33.0.5. The account still existed in the client. After the upgrade the client asked me to log in again; after granting access in the browser, the client remained offline. |
Summary
Fix login flow by changing redirect handling from
ManualRedirectPolicytoNoLessSafeRedirectPolicyinsrc/libsync/accessmanager.cpp.Problem
The current desktop client fails during account setup/login with a redirect-related error, while:
Fix
Replace:
QNetworkRequest::ManualRedirectPolicy
with:
QNetworkRequest::NoLessSafeRedirectPolicy
Result
With this change:
Additional context
This appears to be a regression compared to 4.0.2.
Related issue
Fixes #9794