Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 619732

Summary: glsa-check 0.3.3 traceback caused by portage.exception.InvalidAtom: <net-misc/smb4k-1.2.3-r1
Product: Gentoo Security Reporter: Simon <simon.vanderveldt+gentoo>
Component: GLSA ErrorsAssignee: Gentoo Security <security>
Status: RESOLVED FIXED    
Severity: normal CC: till2.schaefer
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Simon 2017-05-26 10:52:39 UTC
glsa-check --list fails for me with the following error message.
I synced at 12:45 today.

+ glsa-check --list
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/glsa-check", line 186, in <module>
    if myglsa.isVulnerable():
  File "/usr/lib64/python3.4/site-packages/gentoolkit/glsa/__init__.py", line 683, in isVulnerable
    or (None != getMinUpgrade([v,], path["unaff_atoms"]))
  File "/usr/lib64/python3.4/site-packages/gentoolkit/glsa/__init__.py", line 410, in getMinUpgrade
    v_installed = reduce(operator.add, [match(v, "vartree") for v in vulnerableList], [])
  File "/usr/lib64/python3.4/site-packages/gentoolkit/glsa/__init__.py", line 410, in <listcomp>
    v_installed = reduce(operator.add, [match(v, "vartree") for v in vulnerableList], [])
  File "/usr/lib64/python3.4/site-packages/gentoolkit/glsa/__init__.py", line 347, in match
    return db.match(atom)
  File "/usr/lib64/python3.4/site-packages/portage/dbapi/vartree.py", line 574, in match
    origdep, mydb=self, use_cache=use_cache, settings=self.settings)
  File "/usr/lib64/python3.4/site-packages/portage/dbapi/dep_expand.py", line 35, in dep_expand
    mydep = Atom(mydep, allow_repo=True)
  File "/usr/lib64/python3.4/site-packages/portage/dep/__init__.py", line 1270, in __init__
    raise InvalidAtom(self)
portage.exception.InvalidAtom: <net-misc/smb4k-1.2.3-r1

Reproducible: Always

Actual Results:  
glsa-check crashes

Expected Results:  
glsa-check works
Comment 1 Till Schäfer 2017-05-26 12:00:25 UTC
Maybe related to Bug 619740.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2017-05-26 12:27:42 UTC
The GLSA XML document contained invalid data.
I fixed a new revision of this document, issue is now fixed.
Comment 3 Simon 2017-05-26 12:29:48 UTC
@Thomas Deutschmann Thanks for the quick fix!
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2017-05-26 12:51:06 UTC
*** Bug 619740 has been marked as a duplicate of this bug. ***