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
F15450808: D13216.id31950.diff
Fri, Mar 28, 6:20 PM
F15450762: D13216.id31952.diff
Fri, Mar 28, 6:07 PM
F15444788: D13216.diff
Thu, Mar 27, 11:20 AM
F15415135: D13216.id31952.diff
Thu, Mar 20, 4:16 AM
Unknown Object (File)
Feb 19 2025, 1:20 PM
Unknown Object (File)
Feb 17 2025, 1:20 AM
Unknown Object (File)
Feb 11 2025, 9:26 PM
Unknown Object (File)
Feb 8 2025, 12:32 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.