Page MenuHomePhabricator

Iterate over ranges correctly for encryped files
ClosedPublic

Authored by epriestley on Apr 5 2017, 1:35 PM.
Tags
None
Referenced Files
F14753633: D17623.id42387.diff
Tue, Jan 21, 3:15 PM
Unknown Object (File)
Mon, Jan 13, 5:02 PM
Unknown Object (File)
Fri, Dec 27, 5:33 PM
Unknown Object (File)
Fri, Dec 27, 8:44 AM
Unknown Object (File)
Dec 20 2024, 8:59 PM
Unknown Object (File)
Dec 18 2024, 3:18 AM
Unknown Object (File)
Dec 11 2024, 5:52 PM
Unknown Object (File)
Dec 11 2024, 1:27 AM
Subscribers
None

Details

Summary

Fixes T12079. Currently, when a file is encrypted and a request has "Content-Range", we apply the range first, then decrypt the result. This doesn't work since you can't start decrypting something from somewhere in the middle (at least, not with our cipher selection).

Instead: decrypt the result, then apply the range.

Test Plan

Added failing unit tests, made them pass

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Apr 5 2017, 4:35 PM
This revision was automatically updated to reflect the committed changes.