Page MenuHomePhabricator

When building a config stack, stop SiteSource objects from poisoning the cache
ClosedPublic

Authored by epriestley on Jul 20 2018, 9:39 PM.
Tags
None
Referenced Files
F13102763: D19526.diff
Sat, Apr 27, 6:23 AM
Unknown Object (File)
Thu, Apr 25, 3:55 AM
Unknown Object (File)
Fri, Apr 19, 7:49 PM
Unknown Object (File)
Mon, Apr 1, 7:20 AM
Unknown Object (File)
Sun, Mar 31, 5:06 PM
Unknown Object (File)
Sat, Mar 30, 6:29 AM
Unknown Object (File)
Mar 27 2024, 1:56 PM
Unknown Object (File)
Mar 6 2024, 2:29 AM
Subscribers
None

Details

Summary

Ref T13168. I'm not sure how this worked before, but I ran into this issue on my new laptop.

SiteSource accesses PhabrictatorEnv::getEnvConfig('phabricator.base-uri') when local, which may poison the cache and lock the value since we don't later discard the cache.

Specifically, when I access http://locala.phacility.com, I was getting an error like "You made a request for locala.phacility.com, but no configured site can serve this request.". This was because the base-uri was being incorrectly frozen as "local.phacility.com". The expectation is that it will match, so the standard PlatformSite will serve the request.

Test Plan
  • Before change: "no configured site" error.
  • After change: local instance works properly.

Diff Detail

Repository
rP Phabricator
Branch
ccache1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 20486
Build 27824: Run Core Tests
Build 27823: arc lint + arc unit