Description of problem:
When you provide only one or more "X" characters as handler_name_pattern when calling LMIIndicationListener.add_handler, IndexError("string index out of range") is raised from LMIIndicationListener.__create_handler_name
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. l = LMIIndicationListener(...)
2. l.handler("XX", ...)
IndexError("string index out of range")
If at least 8 "X" characters are given, unique name should be returned.
Otherwise, LMIHandlerNamePatternError should be raised.
In the offending code:
while handler_name_pattern[pattern_len - 1 - x_cnt] == "X":
x_cnt += 1
index is eventually -1.
Patch posted for review:
openlmi-tools-0.9.1-1.fc20 has been submitted as an update for Fedora 20.
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing openlmi-tools-0.9.1-1.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
openlmi-tools-0.9.1-2.fc20 has been submitted as an update for Fedora 20.
openlmi-tools-0.9.1-3.fc20 has been submitted as an update for Fedora 20.
openlmi-tools-0.9.1-3.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.