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
Unknown Object (File)
Fri, Nov 22, 10:43 PM
Unknown Object (File)
Tue, Nov 19, 4:41 AM
Unknown Object (File)
Nov 15 2024, 2:56 AM
Unknown Object (File)
Nov 14 2024, 11:24 AM
Unknown Object (File)
Nov 10 2024, 9:21 PM
Unknown Object (File)
Nov 10 2024, 7:30 AM
Unknown Object (File)
Nov 10 2024, 5:14 AM
Unknown Object (File)
Nov 10 2024, 5:09 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.