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

Use external library for vobject parsing #375

Open
untitaker opened this issue Mar 10, 2016 · 6 comments
Open

Use external library for vobject parsing #375

untitaker opened this issue Mar 10, 2016 · 6 comments

Comments

@untitaker
Copy link
Member

Our current sloppy parser is not exactly a maintenance burden, but it's annoying to have it here in the first place.

Two things need to be resolved for this:

I'm unsure if this is worth it, given how well the sloppy parser in vdirsyncer.utils.vobject has worked in the past.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@WhyNotHugo
Copy link
Member

From what I can tell:

cons

Might raise issues due to bugs in collective/icalendar
Code migration cost
Bugfixes might be tied to collective/icalendar releases

pros

Will help find bugs in collective/icalendar
Reduced maintenance cost
Will probably raise awareness of issues we haven't found yet
Maybe we can detect earlier if we're sending invalid events to a server?

@untitaker
Copy link
Member Author

Maybe we can detect earlier if we're sending invalid events to a server?

Interesting idea, but I'm unsure about this, as a "generic" implementation would also prevent downloading broken events from a server. Perhaps put it into the repair command.

@untitaker
Copy link
Member Author

Alternatively use https://github.com/eventable/vobject, which seems to be Py3 compatible and also can parse both iCalendar and Vobject

@untitaker untitaker added ready and removed planning labels Apr 9, 2016
@untitaker
Copy link
Member Author

Quick note: In #428 we figured out that vobject has many bugs. We do need absolutely correct serialization/deserialization roundtrip because of the singlefile/http storages.

@untitaker
Copy link
Member Author

I think we should use vobject anyway. I wonder if there's a good set of weird vcards somewhere, to test with vobject.

@untitaker untitaker changed the title Bring icalendar dependency back into vdirsyncer Use external library for vobject parsing Nov 15, 2016
@untitaker
Copy link
Member Author

skarim/vobject#52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants