Page MenuHomePhabricator

Fix string construction in Conduit exceptions
ClosedPublic

Authored by epriestley on Aug 11 2014, 1:25 PM.
Tags
None
Referenced Files
F14765062: D10211.id24592.diff
Thu, Jan 23, 3:16 PM
F14765058: D10211.id24573.diff
Thu, Jan 23, 3:16 PM
F14765057: D10211.id.diff
Thu, Jan 23, 3:16 PM
F14765056: D10211.diff
Thu, Jan 23, 3:16 PM
Unknown Object (File)
Sat, Jan 18, 12:37 AM
Unknown Object (File)
Fri, Jan 10, 7:39 AM
Unknown Object (File)
Dec 16 2024, 11:54 AM
Unknown Object (File)
Dec 14 2024, 6:08 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).