"IndexError: string index out of range" in version.from_pip_string
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PBR |
Fix Released
|
Critical
|
R. Nortman |
Bug Description
[reported on behalf or R. Nortman (r-nortman)]
Changelog parsing changed between 1.8.1 and 1.9.0 with https:/
[pbr] Writing ChangeLog
[pbr] Generating ChangeLog
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-
pbr=True)
File "/usr/lib/
dist.
File "/usr/lib/
self.
File "/usr/lib/
cmd_obj.run()
File "/home/
self.
File "/usr/lib/
self.
File "/usr/lib/
cmd_obj.run()
File "/home/
_
File "/home/
git.
File "/home/
for release, content in changelog:
File "/home/
for hash, tags, msg in changelog:
File "/home/
if _is_valid_
File "/home/
version.
File "/home/
if remainder and (remainder[0][0] == '0' or
IndexError: string index out of range
This is simple: from_pip_string should have a try:except IndexError: raise ValueError around its entire body, or at least any suspect/unguarded regions.