Bug 1373120

Summary: ksc line align issue in utils.py and have potential issue of submitting bug
Product: Red Hat Enterprise Linux 7 Reporter: Chunyu Hu <chuhu>
Component: kscAssignee: Stanislav Kozina <skozina>
Status: CLOSED ERRATA QA Contact: Chunyu Hu <chuhu>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.3CC: mkolaja, xzhou
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ksc-0.9.18-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1373208 (view as bug list) Environment:
Last Closed: 2016-11-04 03:55:07 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:
Bug Depends On:    
Bug Blocks: 1373208    

Description Chunyu Hu 2016-09-05 09:30:25 UTC
Description of problem:

/usr/share/ksc/utils.py contain lines start with tab, not same with other lines.
And seems it can cause it fail to submit bugs with none red hat account.but not very sure, as we don't have a good test account(none @redhat.com) can be used. 

We have a test instance of bugzilla, but it listed kabi-whitelists as a component. not same with this production bugzilla that kabi-whitelists is a sub component of kernel. 

bzweb.host.qe.eng.pek2.redhat.com
redhat3   
5HSSQE@redhat   ---> passwd

in addition, that instance can't pass the ssl verification. so I also removed the ssl check. more detail in:

https://bugzilla.redhat.com/show_bug.cgi?id=1328384#c10

Version-Release number of selected component (if applicable):
ksc-0.9.17-1.el7.noarch

How reproducible:

always



Steps to Reproduce:

[root@intel-wildcatpass-01 hello]# cat test.sh 

check()
{
	echo "Check line start with TAB+WHITESPACE"
	for f in $(find /usr/share/ksc -name "*.py"); do
		echo "checking file: $f"
		sed -n -e  "/^[\t]\+ */{=}" $f
	done
}
check


[root@intel-wildcatpass-01 hello]# sh test.sh 
Check line start with TAB+WHITESPACE
checking file: /usr/share/ksc/bugzilla/__init__.py
checking file: /usr/share/ksc/bugzilla/base.py
checking file: /usr/share/ksc/bugzilla/bug.py
checking file: /usr/share/ksc/bugzilla/bugzilla3.py
checking file: /usr/share/ksc/bugzilla/bugzilla4.py
checking file: /usr/share/ksc/bugzilla/rhbugzilla.py
checking file: /usr/share/ksc/keywords.py
checking file: /usr/share/ksc/ksc.py
checking file: /usr/share/ksc/utils.py
147
308
309
319
333


Actual results:

The ksc python files contain line align issue.

Expected results:

The python files in /usr/share/ksc should both start with whitespace. should not contain lines start with tab.

Additional info:

Comment 6 errata-xmlrpc 2016-11-04 03:55:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2334.html