Page MenuHomePhabricator

Iterate over ranges correctly for encryped files
ClosedPublic

Authored by epriestley on Apr 5 2017, 1:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 10:47 AM
Unknown Object (File)
Fri, Apr 5, 4:17 PM
Unknown Object (File)
Fri, Apr 5, 12:43 PM
Unknown Object (File)
Thu, Mar 28, 6:08 PM
Unknown Object (File)
Thu, Mar 28, 8:51 AM
Unknown Object (File)
Thu, Mar 21, 6:12 PM
Unknown Object (File)
Mar 15 2024, 11:26 PM
Unknown Object (File)
Feb 11 2024, 2:22 PM
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.