Page MenuHomePhabricator

Don't load attached files for profile images
ClosedPublic

Authored by epriestley on Jun 8 2015, 9:56 PM.
Tags
None
Referenced Files
F13293560: D13216.diff
Wed, Jun 5, 9:25 AM
F13287856: D13216.diff
Tue, Jun 4, 9:24 AM
F13275595: D13216.diff
Fri, May 31, 4:57 AM
F13261987: D13216.diff
Mon, May 27, 1:39 AM
F13258147: D13216.id31952.diff
Sun, May 26, 7:06 AM
F13245933: D13216.id31950.diff
Thu, May 23, 6:47 AM
F13244347: D13216.diff
Thu, May 23, 4:44 AM
F13225422: D13216.diff
Sun, May 19, 3:09 PM
Subscribers

Details

Summary

Ref T8478. I think the cycle is:

  • Conpherence Thread > Loads handle for participant > loads file for profile image > loads attached files to check visibility > loads conpherence thread > ...

So, specifically, someone attached their profile image to a thread or message somewhere.

This breaks the cycle by stopping the attached-files visibility check from happening, since we don't need it. This seemed like the easiest link in the chain to break.

Ideally, I think the longer-term and more complete fix here is to stop Conpherence from requiring handles in order to load thread handles (and, generally, having a "handles must not load other handles" rule), but that's not trivial and might not be especially practical.

Test Plan

Will test in production.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Don't load attached files for profile images.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Jun 8 2015, 10:39 PM
This revision was automatically updated to reflect the committed changes.