Skip to content

Fix login flow by avoiding manual redirect policy on macOS client#9861

Open
KarstenH792 wants to merge 1 commit intonextcloud:masterfrom
KarstenH792:fix/mac-loginflow-redirect-policy
Open

Fix login flow by avoiding manual redirect policy on macOS client#9861
KarstenH792 wants to merge 1 commit intonextcloud:masterfrom
KarstenH792:fix/mac-loginflow-redirect-policy

Conversation

@KarstenH792
Copy link
Copy Markdown

Summary

Fix login flow by changing redirect handling from ManualRedirectPolicy to NoLessSafeRedirectPolicy in src/libsync/accessmanager.cpp.

Problem

The current desktop client fails during account setup/login with a redirect-related error, while:

  • server endpoints respond correctly
  • curl tests succeed
  • Nextcloud Desktop 4.0.2 works
  • current versions fail

Fix

Replace:
QNetworkRequest::ManualRedirectPolicy

with:
QNetworkRequest::NoLessSafeRedirectPolicy

Result

With this change:

  • Login Flow v2 completes successfully
  • app password is returned
  • DAV access works
  • account setup succeeds

Additional context

This appears to be a regression compared to 4.0.2.

Related issue

Fixes #9794

Signed-off-by: Karsten Hoehn <git@karstenhoehn.net>
@KarstenH792 KarstenH792 force-pushed the fix/mac-loginflow-redirect-policy branch from 8c455b4 to 7ff9f54 Compare April 18, 2026 04:50
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 2, 2026

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

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.)

@KarstenH792
Copy link
Copy Markdown
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Mac desktop client cannot connect to some self‑hosted servers using internal CA (works from browsers and other OS clients)

1 participant