Giter VIP home page Giter VIP logo

Comments (6)

e-dschungel avatar e-dschungel commented on July 2, 2024

SabreDAV 1.6.4 works now. I had an error in my apache configuration. It was blocking PUT requests.

SabreDAV 1.7.1 doesn't work. I did a little debugging and found out that SabreDAV throws an execption because the vcard the cardDAV plugin tries to send does not contain an UID. This is required by the standard. The UID validation came in with this commit:
evert/SabreDAV@4e11b8e

This issue was fixed in the myroundcube fork, see
http://myroundcube-plugins.40634.n3.nabble.com/cardDAV-Adding-new-contacts-using-SabreDAV-td4024337.html

from roundcube-carddav.

mrpurplenz avatar mrpurplenz commented on July 2, 2024

This issue also kills "add new contact" for a baikal server (based on sabreDAV).
I can confirm that the carddav_backend.php from the latest myroundcube fork fixed this for baikal too.
I think someone should attempt to include the fix here.

from roundcube-carddav.

 avatar commented on July 2, 2024

This error occurs in all SabreDAV based caldav and carddav servers up to SabreDAV versions 1.6.3-stable (2012-06-12): https://github.com/evert/SabreDAV/blob/1.6/ChangeLog Line:35

from roundcube-carddav.

tuxgasy avatar tuxgasy commented on July 2, 2024

Hello! I have the same bug! I can do to fix it? Thank!

from roundcube-carddav.

tfl avatar tfl commented on July 2, 2024

As I understand the code a newly generated card does include an UID. However, and that is not the problem of this RC plugin, generating the UUID outside of the carddav server is wrong. The card should be send to the server without an UID using a POST request - not PUT (PUT is for updating a ressource, not creating it). The server itself should then generate that UID, create the record with that UID and send the UID back to the caller.

Now, I use plugin version 0.5.2 with RC 0.9.2 and I still can't create new cards... Sometimes I can't even update a card due to the same error message. If I would find some time to debug this I probably find the reason why this happens ;)

from roundcube-carddav.

tfl avatar tfl commented on July 2, 2024

I added a pull request which adds the missing UID to the vcard right before it is uploaded to the server.
If you use postgres (as I do) you may probably would like to update your round cube's "config/db.inc.php" reflecting the name of your carddav_contacts sequence

$rcmail_config['db_sequence_carddav_contacts'] = 'carddav_contacts_carddav_contact_id_seq';

As long as I ignored that the vcard was uploaded but RC still reports an error. Now the error is gone but I now have a blank region where the new vcard data should be displayed. In both cases, after reloading the page the contact shows up ;)

from roundcube-carddav.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.