Home GnuPG

Make error handling for ICS parsing more robust
f8af794b2135Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

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

Provenance
epriestley <git@epriestley.com>Authored on Sep 8 2016, 11:41 PM
Parents
rPHUTIL0107c187b6d8: Add a very basic ICS syntax parser
Branches
Unknown
Tags
Unknown

Event Timeline

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