]> 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:31:42 +0000 (10:31 +0100)
commit9d669c2d6408ded9311f4deb522a809e9eac84e2
treee068fb89e85eaa3a79a5b697a6f695cf9661af00
parente338a3e4252f7dd28fdb95460d765e9931e41f70
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
(cherry picked from commit c975e20d3b5ba503df5fa1ea9f9a7490f3f223ae)
patchwork/tests/test_mboxviews.py
patchwork/views/patch.py
releasenotes/notes/issue-189-fe4024f33e1b5203.yaml [new file with mode: 0644]