Homec4science

Check for null, strictly, in maniphest.update param validation

Authored by Alex Wyler <alex.s.wyler@gmail.com> on Mar 4 2014, 20:42.

Description

Check for null, strictly, in maniphest.update param validation

Summary:
If the first non-null entry in the params array is falsey, the request bombs.

Something like {"id":279,"projectPHIDs":[],"status":"0","ownerPHID":"PHID-USER-on3xxsnaljmfn36d4b7a"}

Test Plan:
Before:

echo '{"id":279,"projectPHIDs":[],"status":"0","ownerPHID":"PHID-USER-cj3cpuh7oorbmnn2pl5g"}' | arc call-conduit maniphest.update
{"error":"ERR-NO-EFFECT","errorMessage":"ERR-NO-EFFECT: Update has no effect.","response":null}

After:

echo '{"id":279,"projectPHIDs":[],"status":"0","ownerPHID":"PHID-USER-cj3cpuh7oorbmnn2pl5g"}' | arc call-conduit maniphest.update
{"error":null,"errorMessage":null,"response":{"id":"279","phid":"PHID-TASK-lbwcq3pmur2c5fuqqhlx"...

Reviewers: garoevans, epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran

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

Details

Committed
epriestley <git@epriestley.com>Mar 4 2014, 20:42
Pushed
aubortJan 31 2017, 17:16
Parents
rPHfb87d0f4919b: (PhabricatorIRCProtocolAdapter.connect) Use recommended connection registration…
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH5fabda2a6db1: Check for null, strictly, in maniphest.update param validation (authored by Alex Wyler <alex.s.wyler@gmail.com>).Mar 4 2014, 20:42