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
F13189487: D13216.diff
Sat, May 11, 6:06 AM
Unknown Object (File)
Wed, May 1, 12:38 AM
Unknown Object (File)
Sun, Apr 28, 9:18 AM
Unknown Object (File)
Wed, Apr 17, 5:23 AM
Unknown Object (File)
Apr 9 2024, 6:04 AM
Unknown Object (File)
Apr 4 2024, 1:55 PM
Unknown Object (File)
Mar 12 2024, 4:56 PM
Unknown Object (File)
Feb 24 2024, 2:33 AM
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.