Giter Club home page Giter Club logo

Comments (5)

sim0nx avatar sim0nx commented on July 28, 2024

Issue related to vobject, not caldav. Closing issue here

from caldav.

tobixen avatar tobixen commented on July 28, 2024

We may consider abandoning vobject eventually.

Anyway, it's interesting to know if this is a breach of the standard or not. As I read https://tools.ietf.org/html/rfc5545#section-3.3.6 a single P without any trailing period information is invalid, hence it's not a bug in vobject.

There is always a question if one should create workarounds when software applications break the standard. I think the most proper would be:

  1. try to fix this issue at the producer side, as the producer of the ical data is breaching the standard.
  2. if the above fails, make a filter before feeding the data to the caldav library, i.e. a regexp replace s/^DURATION:P$/DURATION:P0S/

from caldav.

sim0nx avatar sim0nx commented on July 28, 2024

Thanks for the feedback on this.

I agree that 1. would be best, but that is not likely to happen anytime soon (the client is thunderbird/lightning).
Option 2 sounds doable, but that would have to done in caldav or am I wrong?

My current workaround is a fork of vobject where if this happens, I force a duration of 0s and all is fine.
Though of course I would very much prefer not to do it that way :-)

from caldav.

tobixen avatar tobixen commented on July 28, 2024

Thunderbird Lightning is an open source product, isn't it? Report the bug upstream, and perhaps it will be fixed.

I assume you have some interface code between Thunderbird and the python caldav library, that's where I would have put the workaround.

from caldav.

sim0nx avatar sim0nx commented on July 28, 2024

Sure, my point was that it would take a very long time before such a fix would land in my distro ;-)
Anyways, there is a caldav server (davical) involved. I will look into this more to be sure it is actually TB and not maybe davical, which does not conform to the RFC and have this reported wherever appropriate.

Thnx

from caldav.

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.