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
F12828789: D20429.id48763.diff
Thu, Mar 28, 11:04 AM
Unknown Object (File)
Wed, Mar 27, 1:57 AM
Unknown Object (File)
Wed, Mar 27, 1:57 AM
Unknown Object (File)
Wed, Mar 27, 1:57 AM
Unknown Object (File)
Feb 11 2024, 5:41 AM
Unknown Object (File)
Feb 10 2024, 4:09 PM
Unknown Object (File)
Dec 31 2023, 4:03 AM
Unknown Object (File)
Dec 13 2023, 6:30 PM
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