[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SUSE web link changes



Hi Andreas,

On Mon, Dec 18, 2017 at 02:53:36PM +0100, Salvatore Bonaccorso wrote:
> Hi Andreas,
> 
> Thanks for your contribution! Very much appreciated!
> 
> On Mon, Dec 18, 2017 at 01:41:04PM +0100, Andreas Stieger wrote:
> > Hello Debian team,
> > 
> > please consider the following change to the tracker:
> > 
> > * fix SUSE capitalization
> 
> Applied! (and will be updated once security-tracker updated, will do
> later).
> 
> > * link to SUSE CVE pages
> 
> I have a question here: Red Hat has similar pages, but I have noticed
> that sometimes the CVE pages lack behind to the actual Bugzilla
> entries. Is the SUSE one always in sync? I think to remember to have
> seen here similar issue. In case of discrepancy I would like to see
> still the reference to the bugzilla, so maybe create two references?

I enabled a slight variant of your proposal. Patch attached.

Thanks a lot for your contribution!

Regards,
Salvatore
>From 0a9f14a5f9352a950946701639a698baac57b6ed Mon Sep 17 00:00:00 2001
From: carnil <carnil@e39458fd-73e7-0310-bf30-c45bca0a0e42>
Date: Mon, 18 Dec 2017 19:52:09 +0000
Subject: [PATCH] Link additionally to bugzilla as well to SUSE's CVE pages

Thanks: Andreas Stieger <astieger@suse.com>

git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@58680 e39458fd-73e7-0310-bf30-c45bca0a0e42
---
 bin/tracker_service.py | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/bin/tracker_service.py b/bin/tracker_service.py
index 35c50adb23..87520ad460 100755
--- a/bin/tracker_service.py
+++ b/bin/tracker_service.py
@@ -396,8 +396,10 @@ data source.""")],
                                       self.make_ubuntu_bug_ref(url, bug.name, 'Ubuntu'),
                                       ", ",
                                       self.make_gentoo_bug_ref(url, bug.name, 'Gentoo'),
-                                      ", ",
-                                      self.make_suse_bug_ref(url, bug.name, 'SUSE'),
+                                      ", SUSE ",
+                                      self.make_suse_bug_ref(url, bug.name, 'bugzilla'),
+                                      "/",
+                                      self.make_suse_cve_ref(url, bug.name, 'CVE'),
                                       ", ",
                                       self.make_mageia_bug_ref(url, bug.name, 'Mageia'),
                                       ", GitHub ",
@@ -1538,6 +1540,8 @@ Debian bug number.'''),
     def url_suse_bug(self, url, name):
         return url.absolute("https://bugzilla.novell.com/show_bug.cgi";,
                             id=name)
+    def url_suse_cve(self, url, name):
+        return url.absolute("https://www.suse.com/security/cve/%s/"; % name)
     def url_mageia_bug(self, url, name):
         return url.absolute("https://advisories.mageia.org/%s.html"; % name)
     def url_github_code_bug(self, url, name):
@@ -1666,6 +1670,11 @@ Debian bug number.'''),
             name = cve
         return A(self.url_suse_bug(url, cve), name)
 
+    def make_suse_cve_ref(self, url, cve, name=None):
+        if name is None:
+            name = cve
+        return A(self.url_suse_cve(url, cve), name)
+
     def make_mageia_bug_ref(self, url, cve, name=None):
         if name is None:
             name = cve
-- 
2.15.1


Reply to: