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

carddav sync error: Invalid vCard date-time string - no access to addressbook #528

Closed
yeupou opened this issue Sep 25, 2022 · 3 comments
Closed
Labels
bug Something isn't working external Issue is outside our code

Comments

@yeupou
Copy link

yeupou commented Sep 25, 2022

Hello,

Describe the bug
Carddav (Nextcloud) was working fine until recently, I think until 2.18. But I cannot exclude changes on Nextcloud either.

To Reproduce

  1. No change to a working carddav config
  2. Addressbook
  3. "Request Failed" as a browser pop-up
  4. Logs:
2022/09/25 11:05:33 [error] 1572#1572: *56 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Sabre\VObject\InvalidDataException: Invalid vCard date-time string: 2017-10-04T16:16:42+0000 in /usr/share/snappymail/snappymail/v/2.18.2/app/libraries/Sabre/VObject/DateTimeParser.php:315
Stack trace:
#0 /usr/share/snappymail/snappymail/v/2.18.2/app/libraries/Sabre/VObject/Property/VCard/TimeStamp.php(50): Sabre\VObject\DateTimeParser::parseVCardDateTime()
#1 /usr/share/snappymail/snappymail/v/2.18.2/app/libraries/Sabre/VObject/Property.php(302): Sabre\VObject\Property\VCard\TimeStamp->getJsonValue()
#2 /usr/share/snappymail/snappymail/v/2.18.2/app/libraries/Sabre/VObject/Component/VCard.php(463): Sabre\VObject\Property->jsonSerialize()
#3 [internal function]: Sabre\VObject\Component\VCard->jsonSerialize()
#4 /usr/share/snappymail/snappymail/v/2.18.2/app/libraries/MailSo/Base/Utils.php(836): json_encode()
#5 /usr/share/snappymail/snappymail/v/2.18.2/app/libraries/RainLoop/ServiceActions.php(193): MailSo\Base\Utils::Php2js()

Expected behavior
Access to addressbook
Please complete the following information:

  • Browser: Firefox 104.0.2
  • IMAP daemon: Dovecot
  • PHP version: 7.4
  • SnappyMail Version: 2.18.2

Thunderbird sync seems to work fine with the same carddav setup, so the 2017-10-04T16:16:42+0000 should probably not be a problem

Regards

the-djmaze pushed a commit that referenced this issue Sep 25, 2022
@the-djmaze
Copy link
Owner

Could you try with above commit?

Issue seems to be timezone as 2017-10-04T16:16:42+0000 is invalid because the regular expression expects 2017-10-04T16:16:42+00:00 (with :)

@the-djmaze the-djmaze added bug Something isn't working external Issue is outside our code labels Sep 27, 2022
@phsc84
Copy link

phsc84 commented Sep 30, 2022

Just tested CardDAV sync on my installation with 2.18.3. It worked perfectly fine for me.

@yeupou
Copy link
Author

yeupou commented Oct 1, 2022

Sorry for the delay, I was away. It is fixed on 2.18.3. Thanks a lot for your good work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working external Issue is outside our code
Projects
None yet
Development

No branches or pull requests

3 participants