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
Unknown Object (File)
Wed, Dec 4, 6:24 AM
Unknown Object (File)
Wed, Dec 4, 5:41 AM
Unknown Object (File)
Thu, Nov 28, 6:28 PM
Unknown Object (File)
Nov 20 2024, 9:01 PM
Unknown Object (File)
Nov 20 2024, 10:37 AM
Unknown Object (File)
Nov 16 2024, 1:25 PM
Unknown Object (File)
Nov 12 2024, 2:47 AM
Unknown Object (File)
Nov 10 2024, 7:33 AM
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.