Page MenuHomeSoftware Heritage

browse/content: Fix error when a staff user browses a not found content
ClosedPublic

Authored by anlambert on Oct 19 2021, 2:04 PM.

Details

Summary

An error 500 was returned instead of a 404 status code.

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D6505 (id=23622)

Rebasing onto 61b80b8b23...

Current branch diff-target is up to date.
Changes applied before test
commit b72fd7f9174615f7161a7664f1241e422dd67353
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Tue Oct 19 14:03:07 2021 +0200

    browse/content: Fix error when a staff user browses a not found content
    
    An error 500 was returned instead of a 404 status code.

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1192/ for more details.

This revision is now accepted and ready to land.Oct 19 2021, 2:26 PM