Page MenuHomePhabricator

Make error handling for ICS parsing more robust
ClosedPublic

Authored by epriestley on Sep 8 2016, 10:49 PM.
Tags
None
Referenced Files
F13240115: D16521.id39760.diff
Wed, May 22, 10:39 AM
F13227102: D16521.id39760.diff
Mon, May 20, 1:13 AM
F13226278: D16521.id39805.diff
Sun, May 19, 8:04 PM
F13207893: D16521.id.diff
Thu, May 16, 5:50 AM
F13207102: D16521.id39805.diff
Wed, May 15, 9:17 PM
F13207025: D16521.id.diff
Wed, May 15, 8:14 PM
F13203936: D16521.diff
Wed, May 15, 12:13 AM
F13192473: D16521.id39760.diff
Sun, May 12, 7:58 AM
Subscribers
None

Details

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.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Make error handling for ICS parsing more robust.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Sep 9 2016, 1:22 AM
This revision was automatically updated to reflect the committed changes.