Page MenuHomePhorge

Avoid "No such token" exception going to /token/give/ directly
Needs ReviewPublic

Authored by aklapper on Tue, Mar 4, 17:31.

Details

Summary

Handle bots doing strange things more gracefully by not throwing a noisy uninteresting exception in my error log.

EXCEPTION: (Exception) No such token ""! at [<phorge>/src/applications/tokens/editor/PhabricatorTokenGivenEditor.php:153]

Closes T16006

Test Plan
  • Go to /token/give/PHID-TASK-someValidId/ and click one of the tokens, compare Phorge behavior before and after patch
  • Go to a task, in the sidebar, click "Award a Token" and "Rescind a Token": Still works as before

Diff Detail

Repository
rP Phorge
Branch
T16006TokenExcpt (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 1764
Build 1764: arc lint + arc unit