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

Overwrite appointment same UID via API bug or feature? #4432

Open
rtdegraaf opened this issue Aug 20, 2022 · 0 comments
Open

Overwrite appointment same UID via API bug or feature? #4432

rtdegraaf opened this issue Aug 20, 2022 · 0 comments
Labels
0. to triage Pending approval or rejection bug

Comments

@rtdegraaf
Copy link

Steps to reproduce

  1. disable trashbin
  2. create appointment via DAV API
  3. create another appoinment with same UID with same starting time

Expected behavior

In previous versions of Nextcloud, 21 and earlier, the server would return an error that it is not possible to overwrite an existing appointment with the same UID. The server now will only return an error when the calendar trashbin is enabled and an appointment is deleted (so existing in the trashbin) with the same UID.

Actual behaviour

The server accepts the new appointment with the same starting time and UID and overwrites the appointment. In other words the old appointment get's deleted and replaced by the new posted appointment with the same UID. The new appointment has a different ending time and desciption for example so I'm sure that the old appointment is overwritten.

I'm using PHP curl to POST new appointments. The endpoint I'm using is https://nextcloud.server.tld/remote.php/dav/calendars/username/calendar/appointment_id. If there is a way to check if an appointment with $UID exist's so it won't overwrite the appointment, I can create a workaround.

Calendar app version

3.4.2

CalDAV-clients used

No response

Browser

No response

Client operating system

Debian 10

Server operating system

Debian 10

Web server

Apache

Database engine version

MariaDB

PHP engine version

PHP 8.0

Nextcloud version

23

Updated from an older installed version or fresh install

Updated from an older version

List of activated apps

No response

Nextcloud configuration

No response

Web server error log

No response

Log file

No response

Browser log

No response

Additional info

No response

@rtdegraaf rtdegraaf added 0. to triage Pending approval or rejection bug labels Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. to triage Pending approval or rejection bug
Projects
None yet
Development

No branches or pull requests

1 participant