Homec4science

Make error handling for ICS parsing more robust

Authored by epriestley <git@epriestley.com> on Sep 8 2016, 23:41.

Description

Make error handling for ICS parsing more robust

Summary:
Ref T10747. This mostly adds a bunch of test cases for the ICS format syntax errors, and fixes a couple of issues:

  • Multiple VCALENDAR sections in one .ics file is legal according to the spec.
  • Had some bugs with parsing properties with multiple parameters.
  • Tighten up the regexp for property names.
  • Show a lot more detail about what went wrong when parsing fails.

Test Plan: Ran unit tests.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10747

Differential Revision: https://secure.phabricator.com/D16521

Details

Committed
epriestley <git@epriestley.com>Sep 12 2016, 16:22
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU0107c187b6d8: Add a very basic ICS syntax parser
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHUf8af794b2135: Make error handling for ICS parsing more robust (authored by epriestley <git@epriestley.com>).Sep 12 2016, 16:22