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
F14072645: D16521.diff
Wed, Nov 20, 9:24 PM
Unknown Object (File)
Tue, Nov 19, 4:14 AM
Unknown Object (File)
Sun, Nov 17, 12:40 AM
Unknown Object (File)
Sun, Nov 10, 3:59 AM
Unknown Object (File)
Sat, Nov 9, 12:18 PM
Unknown Object (File)
Sat, Nov 9, 12:18 PM
Unknown Object (File)
Sat, Nov 9, 12:18 PM
Unknown Object (File)
Tue, Nov 5, 11:32 PM
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.