Bug 1300251

Summary: clientCaps.py : IndexError: string index out of range
Product: [Community] Spacewalk Reporter: Lukáš Hellebrandt <lhellebr>
Component: ClientsAssignee: Tomáš Kašpárek <tkasparek>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.4CC: ggainey, pstudeni
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-16 08:00:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1484117    
Attachments:
Description Flags
Traceback none

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.