[Git][security-tracker-team/security-tracker][master] Return Not Found if the source pkg does not exist
Emilio Pozuelo Monfort (@pochu)
pochu at debian.org
Thu Jul 17 09:59:45 BST 2025
Emilio Pozuelo Monfort pushed to branch master at Debian Security Tracker / security-tracker
Commits:
f2adc4a7 by Emilio Pozuelo Monfort at 2025-07-17T10:59:35+02:00
Return Not Found if the source pkg does not exist
Based on a patch from Sylvain Beucler.
Fixes: #39
- - - - -
1 changed file:
- bin/tracker_service.py
Changes:
=====================================
bin/tracker_service.py
=====================================
@@ -587,6 +587,10 @@ to improve our documentation and procedures, so feedback is welcome.""")])])
status=404)
pkg = path[0]
+
+ if not self.db.isSourcePackage(self.db.cursor(), pkg):
+ return self.page_not_found(url, pkg)
+
data = security_db.getBugsForSourcePackage(self.db.cursor(), pkg)
def gen_versions():
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/f2adc4a74271696617904fe9d35fdd9e975b396c
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/f2adc4a74271696617904fe9d35fdd9e975b396c
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20250717/afb85c99/attachment-0001.htm>
More information about the debian-security-tracker-commits
mailing list