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
Unknown Object (File)
Thu, Nov 21, 11:31 AM
Unknown Object (File)
Sun, Nov 17, 1:17 PM
Unknown Object (File)
Tue, Oct 29, 1:34 PM
Unknown Object (File)
Thu, Oct 24, 1:46 PM
Unknown Object (File)
Oct 14 2024, 12:46 PM
Unknown Object (File)
Sep 14 2024, 10:43 PM
Unknown Object (File)
Sep 6 2024, 6:14 AM
Unknown Object (File)
Aug 31 2024, 12:03 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable