]> git.ipfire.org Git - thirdparty/patchwork.git/commit
views: Raise 404 if downloading non-existent dependencies
authorStephen Finucane <stephen@that.guru>
Thu, 7 Jun 2018 13:04:47 +0000 (14:04 +0100)
committerStephen Finucane <stephen@that.guru>
Wed, 13 Jun 2018 09:30:20 +0000 (10:30 +0100)
commitc975e20d3b5ba503df5fa1ea9f9a7490f3f223ae
tree5c7c8f3eeeb7ff51813717e3dee1e9f29d5ada59
parent951a58e4a6f71b91beb345a6608dc4d9fb231337
views: Raise 404 if downloading non-existent dependencies

If a patch was processed by Patchwork before series support was added,
it will not have a series associated with it. As a result, it is not
possible to extract the dependencies for that patch from the series and
a 404 should be raised. This was not previously handled correctly.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Reviewed-by: Daniel Axtens <dja@axtens.net>
Reported-by: John McNamara <john.mcnamara@intel.com>
Fixes: e2dfd490 ("views: Add 'series' parameter to '/mbox' endpoint")
Closes: #189
patchwork/tests/test_mboxviews.py
patchwork/views/patch.py
releasenotes/notes/issue-189-fe4024f33e1b5203.yaml [new file with mode: 0644]