diff options
author | Daniel Axtens <dja@axtens.net> | 2019-04-30 01:33:16 +1000 |
---|---|---|
committer | Daniel Axtens <dja@axtens.net> | 2019-04-30 14:50:05 +1000 |
commit | 666de29ebada5990a8d69f4d71d6bb271e1a68c3 (patch) | |
tree | 0e4fe63a77035fc60e5df3fe899e8a01f46cf983 /docs/api | |
parent | d0b79d9dee04aee13c8d64a193a7818f72eeca3b (diff) | |
download | patchwork-666de29ebada5990a8d69f4d71d6bb271e1a68c3.tar patchwork-666de29ebada5990a8d69f4d71d6bb271e1a68c3.tar.gz |
REST: Handle regular form data requests for checks
08d1459a4a40 ("Add REST API validation using OpenAPI schema") moved
all API requests to JSON blobs rather than form data.
dc48fbce99ef ("REST: Handle JSON requests") attempted to change the
check serialiser to handle this. However, because both a JSON dict
and a QueryDict satisfy isinstance(data, dict), everything was handled
as JSON and the old style requests were broken.
Found in the process of debugging issues from the OzLabs PW & Snowpatch
crew - I'm not sure if they actually hit this one, but kudos to them
anyway as we wouldn't have found it without them.
Fixes: dc48fbce99ef ("REST: Handle JSON requests")
Signed-off-by: Daniel Axtens <dja@axtens.net>
Diffstat (limited to 'docs/api')
0 files changed, 0 insertions, 0 deletions