Page MenuHomePhabricator

Parse (and discard) VALARM sections in ICS files
ClosedPublic

Authored by epriestley on Oct 27 2016, 8:08 PM.
Tags
None
Referenced Files
F14072550: D16761.id40367.diff
Wed, Nov 20, 9:01 PM
Unknown Object (File)
Wed, Nov 20, 10:37 AM
Unknown Object (File)
Sat, Nov 16, 1:25 PM
Unknown Object (File)
Tue, Nov 12, 2:47 AM
Unknown Object (File)
Sun, Nov 10, 7:33 AM
Unknown Object (File)
Sat, Nov 9, 10:44 PM
Unknown Object (File)
Fri, Nov 8, 4:05 PM
Unknown Object (File)
Thu, Oct 31, 4:23 PM
Subscribers
None

Details

Summary

Ref T10747. Ref T11790. These sections may legally appear inside VEVENT sections.

For now, parse but discard them. At least for now, we assume whatever you're importing from is authoritative and handles notifying you if you're importing events.

(It also probably makes more sense to set per-import or per-user notification settings than trust VALARMS? But we can cross that bridge when we come to it.)

Test Plan

Added unit tests.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Parse (and discard) VALARM sections in ICS files.
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.Oct 27 2016, 8:18 PM

I don't really know what we'd do with this anyway:

BEGIN:VALARM
ACTION:EMAIL
SUMMARY:Amazing SEO Results!
DESCRIPTION:Click here to get amazing SEO results! Wow! Amazing!
ATTENDEE:mailto:jsmith@gmail.com
<many many more email addresses>
ATTACH;ENCODING=BASE64;VALUE=BINARY:<not_a_virus.exe base64 encoded>
END:VALARM

...which, interpreted according to the RFC, requires us to send viruses and spam to arbitrary users immediately. 1996 was a simpler time.

"Apple calendar apps amplifying .ics VALARM ACTION:EMAIL"

http://fanf.livejournal.com/143907.html

This revision was automatically updated to reflect the committed changes.