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

Contact could not be saved if both birthday and date of birth given #10654

Closed
skjnldsv opened this issue Aug 11, 2018 · 2 comments
Closed

Contact could not be saved if both birthday and date of birth given #10654

skjnldsv opened this issue Aug 11, 2018 · 2 comments
Labels
1. to develop Accepted and waiting to be taken care of bug feature: dav

Comments

@skjnldsv
Copy link
Member

Ref: nextcloud/contacts#507

Steps to reproduce

  1. Create a new contact
  2. Add birthday
  3. Add anniversary

  1. Edit an existing contact that has a birthday
  2. Add anniversary

Expected behaviour

Save contact.

Actual behaviour

Error message: "Contact could not be saved."

Browser log

"Calendar object with uid already exists in this calendar collection."

Sabre\DAV\Exception\BadRequest: Calendar object with uid already exists in this calendar collection.
/var/www/html/apps/dav/lib/CalDAV/BirthdayService.php - line 308: OCA\DAV\CalDAV\CalDavBackend->createCalendarObject('11', 'kontakte-91a46d...', 'BEGIN VCALENDAR...')
/var/www/html/apps/dav/lib/CalDAV/BirthdayService.php - line 99: OCA\DAV\CalDAV\BirthdayService->updateCalendar('91a46d63-24f2-4...', 'BEGIN VCARD\r\nVE...', Array, '11', Array)
/var/www/html/apps/dav/lib/AppInfo/Application.php - line 119: OCA\DAV\CalDAV\BirthdayService->onCardChanged('2', '91a46d63-24f2-4...', 'BEGIN VCARD\r\nVE...')[internal function] OCA\DAV\AppInfo\Application->OCA\DAV\AppInfo{closure}(*** sensitive parameters replaced ***)
/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php - line 212: call_user_func(Object(Closure), Object(Symfony\Component\EventDispatcher\GenericEvent), '\OCA\DAV\CardDA...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php - line 44: Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, '\OCA\DAV\CardDA...', Object(Symfony\Component\EventDispatcher\GenericEvent))
/var/www/html/apps/dav/lib/CardDAV/CardDavBackend.php - line 683: Symfony\Component\EventDispatcher\EventDispatcher->dispatch('\OCA\DAV\CardDA...', Object(Symfony\Component\EventDispatcher\GenericEvent))
/var/www/html/3rdparty/sabre/dav/lib/CardDAV/Card.php - line 96: OCA\DAV\CardDAV\CardDavBackend->updateCard('2', '91a46d63-24f2-4...', 'BEGIN VCARD\r\nVE...')
/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 1130: Sabre\CardDAV\Card->put('BEGIN VCARD\r\nVE...')
/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 513: Sabre\DAV\Server->updateFile('addressbooks/us...', 'BEGIN VCARD\r\nVE...', NULL)[internal function] Sabre\DAV\CorePlugin->httpPut(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/html/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Sabre\Event\EventEmitter->emit('method PUT', Array)
/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/html/apps/dav/lib/Server.php - line 283: Sabre\DAV\Server->exec()/var/www/html/apps/dav/appinfo/v2/remote.php - line 35: OCA\DAV\Server->exec()
/var/www/html/remote.php - line 164: require_once('/var/www/html/a...'){main}
@skjnldsv skjnldsv added bug 1. to develop Accepted and waiting to be taken care of feature: dav labels Aug 11, 2018
@skjnldsv skjnldsv added this to the Nextcloud 15 milestone Aug 11, 2018
@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #8629 (Birthday Calendar: Update on contact save fails if more than one date field is used), #3084 (contact birthdays with no year given are shown with (*1604) in calendar), #1585 (Reminders for "Contact Birthdays"?), #4592 (Contacts menu should mention if a user has birthday), and #410 (Birthday calendar not generated for shared contacts).

@skjnldsv
Copy link
Member Author

Duplicate of #8629

@skjnldsv skjnldsv marked this as a duplicate of #8629 Aug 11, 2018
@MorrisJobke MorrisJobke removed this from the Nextcloud 15 milestone Aug 20, 2018
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 bug feature: dav
Projects
None yet
Development

No branches or pull requests

3 participants