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
Unknown Object (File)
Sat, Mar 30, 2:51 AM
Unknown Object (File)
Thu, Mar 28, 3:04 PM
Unknown Object (File)
Mar 15 2024, 4:23 AM
Unknown Object (File)
Feb 3 2024, 11:53 AM
Unknown Object (File)
Feb 2 2024, 4:30 AM
Unknown Object (File)
Feb 1 2024, 7:49 PM
Unknown Object (File)
Jan 24 2024, 4:28 PM
Unknown Object (File)
Jan 24 2024, 4:28 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.