Page MenuHomePhabricator

When an invalid "constraints" parameter is provided to a "*.search" method, raise a more tailored error
ClosedPublic

Authored by epriestley on Apr 15 2019, 6:50 PM.
Tags
None
Referenced Files
F13087299: D20429.diff
Thu, Apr 25, 12:56 AM
Unknown Object (File)
Sat, Apr 20, 11:53 AM
Unknown Object (File)
Fri, Apr 19, 4:50 AM
Unknown Object (File)
Thu, Apr 18, 9:42 AM
Unknown Object (File)
Wed, Apr 17, 8:57 PM
Unknown Object (File)
Wed, Apr 10, 12:28 AM
Unknown Object (File)
Thu, Mar 28, 11:04 AM
Unknown Object (File)
Wed, Mar 27, 1:57 AM
Subscribers
None

Details

Summary

See https://discourse.phabricator-community.org/t/constraints-parameter-type-handling-in-maniphest-search/2636.

(The caller provided constraints={...} via cURL, but you can't mix JSON and HTTP parameters like that.)

Test Plan

Called curl 'http://local.phacility.com/api/maniphest.search?api.token=...&constraints=X' (with a valid API token), got a more sensible error.

Diff Detail

Repository
rP Phabricator
Branch
constraints1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 22601
Build 30967: Run Core Tests
Build 30966: arc lint + arc unit