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: add support for If-Match and If-None-Match in PutCalendarObject #130

Open
jech opened this issue Sep 8, 2023 · 1 comment
Open

Comments

@jech
Copy link

jech commented Sep 8, 2023

From client.go line 341:

	// TODO: add support for If-None-Match and If-Match

Without this, it is impossible to update a calendar in a safe manner. At the very least, we need to be able to specify If-None-Match: * in order to safely create an event.

@emersion emersion changed the title Support If-Match and If-None-Match in PutCalendarObject caldav: add support for If-Match and If-None-Match in PutCalendarObject Jan 8, 2024
@Opisek
Copy link

Opisek commented Sep 22, 2024

I am currently unable to update events, due to getting an error saying 409 Conflict: <error xmlns="DAV:"><no-uid-conflict xmlns="urn:ietf:params:xml:ns:caldav"></no-uid-conflict></error>, when attempting to run PutCalendarObject on a modified copy of an event that's already in the calendar.

Is this related?

Edit: That was my mistake. I was accidentally changing the UID of the event when trying to update. In that case, could you please still elaborate, though, what you mean by "safe manner"? If it feels dire enough to me, I might look into contributing this feature in.

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