Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905652 - Python error messages in GLSA announcements
Summary: Python error messages in GLSA announcements
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: GLSA Errors (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-03 11:59 UTC by Claudio Calvelli
Modified: 2023-05-04 07:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Claudio Calvelli 2023-05-03 11:59:32 UTC
Can't see in any bug reports, but the latest GLSA emails from gentoo-announce contain Python tracebacks and errors embedded in the text. For example in GLSA 202305-19, instead of a list of affected packages it says:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/glsamaker/models/glsa.py", line 326, in generate_mail_table
    return self._generate_mail_table()
  File "/usr/local/lib/python3.9/site-packages/glsamaker/models/glsa.py", line 297, in _generate_mail_table
    vuln.range_types_rev[vuln.pkg_range], vuln.version
KeyError: None
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-03 12:07:14 UTC
Sorry, I thought I'd fixed all of these. I'll go over and fix the remaining ones later.

I also note that I left a TODO in libapreq2 which I'll fix later today as well.
Comment 2 Larry the Git Cow gentoo-dev 2023-05-04 07:06:57 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/data/glsa.git/commit/?id=732f6cefb4a1e4884e3fa3048d18faa0babd014a

commit 732f6cefb4a1e4884e3fa3048d18faa0babd014a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-04 07:06:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-04 07:06:24 +0000

    [ GLSA 202305-20 ] Fix description
    
    Bug: https://bugs.gentoo.org/905652
    Bug: https://bugs.gentoo.org/866536
    Signed-off-by: Sam James <sam@gentoo.org>

 glsa-202305-20.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-04 07:09:35 UTC
I just need to finish resending the emails now.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-04 07:10:00 UTC
Once the emails are done, I'll file a bug for improving the Portage handling of this as well.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-04 07:20:06 UTC
OK, done. I'll file a separate bug for the Portage handling.