HomePhabricator

When an invalid "constraints" parameter is provided to a "*.search" method…

Description

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

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.

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D20429

Details

Provenance
epriestleyAuthored on Apr 15 2019, 6:48 PM
epriestleyPushed on Apr 17 2019, 8:17 PM
Reviewer
amckinley
Differential Revision
D20429: When an invalid "constraints" parameter is provided to a "*.search" method, raise a more tailored error
Parents
rP23b86bae6c61: Accept pushes with arbitrary Git refs
Branches
Unknown
Tags
Unknown
Build Status
Buildable 22633
Build 31019: Run Core Tests