Page MenuHomePhabricator

Fix string construction in Conduit exceptions
ClosedPublic

Authored by epriestley on Aug 11 2014, 1:25 PM.
Tags
None
Referenced Files
F14000707: D10211.diff
Thu, Oct 24, 11:54 PM
F13971789: D10211.id24592.diff
Oct 17 2024, 3:21 PM
Unknown Object (File)
Oct 5 2024, 3:09 AM
Unknown Object (File)
Oct 5 2024, 3:05 AM
Unknown Object (File)
Sep 30 2024, 5:02 PM
Unknown Object (File)
Sep 24 2024, 3:25 AM
Unknown Object (File)
Sep 23 2024, 11:56 PM
Unknown Object (File)
Sep 23 2024, 2:27 AM
Subscribers

Details

Summary

Fixes T5838.

  • We currently try to use a ConduitAPIMethod object as a string.
  • We then pass that string to the parent's __construct() method as $message.
Test Plan

Uninstalled Maniphest, then tried to execute maniphest.createtask. Got a useful exception message instead of an error during message construction.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Fix string construction in Conduit exceptions.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: joshuaspence, btrahan.
src/applications/conduit/protocol/exception/ConduitMethodNotFoundException.php
8–10

When invoked from the subclass, this produced a string like:

Conduit method 'Method '<fatal during string-casting an object>' belongs to application 'Maniphest', which is not installed. does not exist.

btrahan edited edge metadata.
This revision is now accepted and ready to land.Aug 11 2014, 6:28 PM
epriestley updated this revision to Diff 24592.

Closed by commit rPd09d7ffe1f2e (authored by @epriestley).