Bug 1300251 - clientCaps.py : IndexError: string index out of range
Summary: clientCaps.py : IndexError: string index out of range
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 2.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomáš Kašpárek
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space27
TreeView+ depends on / blocked
 
Reported: 2016-01-20 10:59 UTC by Lukáš Hellebrandt
Modified: 2017-09-28 18:08 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-16 08:00:16 UTC
Embargoed:


Attachments (Terms of Use)
Traceback (801 bytes, text/plain)
2016-01-20 10:59 UTC, Lukáš Hellebrandt
no flags Details

Description Lukáš Hellebrandt 2016-01-20 10:59:30 UTC
Created attachment 1116582 [details]
Traceback

Description of problem:
When running/importing /usr/share/rhn/up2date_client/clientCaps.py , traceback occurs (attached).

Version-Release number of selected component (if applicable):
rhn-client-tools-2.5.9-1

How reproducible:
With a file with empty line in /etc/sysconfig/rhn/clientCaps.d/

Steps to Reproduce:
1. echo -e 'a\n\nb\n' > /etc/sysconfig/rhn/clientCaps.d/filename
2. from up2date_client import clientCaps


Actual results:
Traceback

Expected results:
No traceback

Comment 1 Pavel Studeník 2016-01-21 14:53:01 UTC
The traceback is caused parsing empty line in configure file /etc/sysconfig/rhn/clientCaps.d/configfiles

I created pull request

https://github.com/spacewalkproject/spacewalk/pull/343/

Comment 2 Grant Gainey 2016-01-22 13:38:55 UTC
spacewalk.github: deb2e81a2c25cc3d7d6a49985f3962b5bb68288d

Comment 3 Tomáš Kašpárek 2016-06-16 08:00:16 UTC
Spacewalk 2.5 was released.

Comment 4 Eric Herget 2017-09-28 18:08:49 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.


Note You need to log in before you can comment on or make changes to this bug.