Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631968 - GLSA 201709-22: TypeError: 'NoneType' object is not subscriptable
Summary: GLSA 201709-22: TypeError: 'NoneType' object is not subscriptable
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: 2017-09-25 03:53 UTC by Tomáš Mózes
Modified: 2017-09-25 21:32 UTC (History)
0 users

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 Tomáš Mózes 2017-09-25 03:53:05 UTC
# glsa-check -v -t all
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/glsa-check", line 345, 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 411, in getMinUpgrade
    u_installed = reduce(operator.add, [match(u, "vartree") for u in unaffectedList], [])
  File "/usr/lib64/python3.4/site-packages/gentoolkit/glsa/__init__.py", line 411, in <listcomp>
    u_installed = reduce(operator.add, [match(u, "vartree") for u in unaffectedList], [])
  File "/usr/lib64/python3.4/site-packages/gentoolkit/glsa/__init__.py", line 345, in match
    return revisionMatch(atom, db, match_type=match_type)
  File "/usr/lib64/python3.4/site-packages/gentoolkit/glsa/__init__.py", line 381, in revisionMatch
    r2 = portage.pkgsplit(revisionAtom[3:])[-1][1:]
TypeError: 'NoneType' object is not subscriptable

# qlist -Ic dev-lang/php
dev-lang/php 7.0.23
dev-lang/php 7.1.9
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2017-09-25 08:36:51 UTC
Not caused by 201709-21 but 201709-22. Thanks for the report, fix is landing.
Comment 2 Larry the Git Cow gentoo-dev 2017-09-25 08:58:17 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/data/glsa.git/commit/?id=66a7bdf29ca2dbc1ab15562b1f4b07debb03f076

commit 66a7bdf29ca2dbc1ab15562b1f4b07debb03f076
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2017-09-25 08:56:15 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2017-09-25 08:56:15 +0000

    Fix GLSA 2017-09-22
    
    Bug: https://bugs.gentoo.org/631968

 glsa-201709-22.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)}
Comment 3 Tomáš Mózes 2017-09-25 09:14:12 UTC
Thanks Thomas.
Comment 4 Adam Randall 2017-09-25 20:00:54 UTC
I have the updated glsa-201709-22.xml, and it's still failing for me.
Comment 5 Adam Randall 2017-09-25 20:09:48 UTC
For me, if I remove glsa-201709-21.xml (PHP), glsa-check works. With it there, I get the error message.

The fix that was posted in git, shows rge being changed to ge. 201709-21.xml has rge in it as well.
Comment 6 Thomas Deutschmann (RETIRED) gentoo-dev 2017-09-25 21:23:04 UTC
You were right, GLSA 201709-21 is also affected.
Comment 7 Larry the Git Cow gentoo-dev 2017-09-25 21:32:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/data/glsa.git/commit/?id=167c578bcc66c0f0483fddb277fc0a92bfed8259

commit 167c578bcc66c0f0483fddb277fc0a92bfed8259
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2017-09-25 21:32:04 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2017-09-25 21:32:41 +0000

    Fix GLSA 2017-09-21
    
    Closes: https://bugs.gentoo.org/631968

 glsa-201709-21.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)