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

CalDAV and Nextcloud: 404 on all but One Account when Setup for Multiple Accounts #2301

Closed
stellarpower opened this issue May 6, 2023 · 2 comments

Comments

@stellarpower
Copy link

Hi,

Am using tasks with a nextcloud instance - had set up CalDAV some time ago, but had problems with syncing that only just managed to look into.

As it's a system I manage myself, I have multiple accounts on the nextcloud - and so, had set up tasks for multiple users using the CalDAV backend. The system is low-power, so sometimes I get problems with syncing in general, but when I have one account that is syncing cleanly, I noticed that the others fail, and if I go into the settings for those others, it seems they have all 404ed.

Bringing up the DAV URL in a private windows in my browser, if I log in as one user, then try to access the calendar DAV URL for a different user, I will get a 404 - even though the URL is correct, once I have authenticated I can then only see the calendars for that user, and nextcloud is returning this as a 404 rather than a 401 for whatever reason. This leads me to believe that the CalDAV backend might be applying credentials or somehow grouping web requests on a per-domain basis, rather than a per-account basis, and thus, the first that syncs correctly wins out, but the other accounts I have can't sync, as the URL is not valid for the user form the first.

LMK what additional details might be helpful, not sure how easily I could produce an MRE, it might just be that my server is the problem here, but I thought if this is what it smells like to me, it might be immediately clear from the source code that either this is a scenario that hadn't been fully-handled or it's something on my end / with my NC.

Thanks!

@abaker
Copy link
Member

abaker commented May 7, 2023

Cookies were stored by URL, so adding a second account on the same server would overwrite cookies from the first account, causing the 404 error. This should be fixed in 1d58292

@abaker abaker closed this as completed May 7, 2023
@stellarpower
Copy link
Author

stellarpower commented May 7, 2023 via email

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

No branches or pull requests

2 participants