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

[Bug]: (CalDAV) MOVE command incorrectly ignores destination target ID #50748

Open
4 of 8 tasks
SebastianKrupinski opened this issue Feb 10, 2025 · 0 comments
Open
4 of 8 tasks
Assignees
Labels
1. to develop Accepted and waiting to be taken care of 31-feedback bug

Comments

@SebastianKrupinski
Copy link
Contributor

⚠️ This issue respects the following points: ⚠️

Bug description

The DAV MOVE command specifies a destination/target ID for the new object in the header.

:method: MOVE
:scheme: https
:path: /remote.php/dav/calendars/user1/personal/A4B956AB-70E1-4C37-BA82-7057FDB86357.ics
:authority: 192.168.254.41
accept: */*
destination: https://192.168.254.41/remote.php/dav/calendars/user1/personal-2/9D8C6604-80E2-45D9-B1B8-05595DA363F3.ics

But the OCA\DAV\CalDAV\Calendar.php::moveInto() function ignores the target ID when moving the object causing errors when the client software confirms that the object has been created.

return $this->caldavBackend->moveCalendarObject($sourceNode->getCalendarId(), (int)$this->calendarInfo['id'], $sourceNode->getId(), $sourceNode->getOwner(), $this->getOwner());

Move Command:

Image

Propfind Command on new object:

Image

Steps to reproduce

  1. Create a calendar entry using external client (iPhone)
  2. Move event from one Calendar to Another

Expected behavior

Move command should create object with designated id

Nextcloud Server version

master

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

@SebastianKrupinski SebastianKrupinski added 1. to develop Accepted and waiting to be taken care of bug labels Feb 10, 2025
@SebastianKrupinski SebastianKrupinski self-assigned this Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of 31-feedback bug
Projects
None yet
Development

No branches or pull requests

2 participants