Page MenuHomePhabricator

Fix a bad DiffusionCommandEngine parameter from HTTPEngine conversion
ClosedPublic

Authored by epriestley on Aug 11 2016, 10:18 PM.
Tags
None
Referenced Files
F18867922: D16390.id39417.diff
Tue, Nov 4, 3:36 AM
F18788578: D16390.diff
Oct 15 2025, 5:33 AM
F18783425: D16390.id39420.diff
Oct 13 2025, 6:36 AM
F18651090: D16390.diff
Sep 21 2025, 2:56 AM
F18629188: D16390.id39420.diff
Sep 16 2025, 8:11 AM
F18617378: D16390.id.diff
Sep 14 2025, 9:03 PM
F18595156: D16390.diff
Sep 12 2025, 8:37 PM
F18590734: D16390.diff
Sep 12 2025, 7:01 AM
Subscribers
None

Details

Summary

I converted this call incorrectly in D16092. We should pass the PhutilURI object, not the string version of it.

Specifically, this resulted in hitting an error like this if a replica needed synchronization:

[2016-08-11 21:22:37] EXCEPTION: (InvalidArgumentException) Argument 1 passed to DiffusionCommandEngine::setURI() must be an instance of PhutilURI, string given, called in...
#0 PhutilErrorHandler::handleError(integer, string, string, integer, array) called at [<phabricator>/src/applications/diffusion/protocol/DiffusionCommandEngine.php:52]
#1 DiffusionCommandEngine::setURI(string) called at [<phabricator>/src/applications/diffusion/protocol/DiffusionRepositoryClusterEngine.php:601]
...
Test Plan

Clusterized an observed repository, demoted a node, ran bin/repository update Rxxx to update, saw no typehint fatal.

Diff Detail

Repository
rP Phabricator
Branch
uri1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 13294
Build 17047: Run Core Tests
Build 17046: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Fix a bad DiffusionCommandEngine parameter from HTTPEngine conversion.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Aug 11 2016, 11:38 PM
This revision was automatically updated to reflect the committed changes.