Page MenuHomePhabricator

Fix string construction in Conduit exceptions
ClosedPublic

Authored by epriestley on Aug 11 2014, 1:25 PM.
Tags
None
Referenced Files
F13269474: D10211.diff
Wed, May 29, 6:22 AM
F13250183: D10211.id.diff
Fri, May 24, 12:54 PM
F13213255: D10211.diff
Fri, May 17, 7:33 AM
Unknown Object (File)
Tue, May 7, 7:44 AM
Unknown Object (File)
Apr 23 2024, 10:52 PM
Unknown Object (File)
Apr 19 2024, 9:14 AM
Unknown Object (File)
Apr 11 2024, 8:00 AM
Unknown Object (File)
Mar 13 2024, 3:15 PM
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).