Bug 1403739

Summary: command spacewalk-report repositories runs in infinite loop
Product: Red Hat Satellite 5 Reporter: Pavel Studeník <pstudeni>
Component: ServerAssignee: Jiří Dostál <jdostal>
Status: CLOSED CURRENTRELEASE QA Contact: Radovan Drazny <rdrazny>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 580CC: jdostal, mkorbel, rdrazny, tlestach
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-reports-2.5.0-5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-21 12:13:58 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: 1340444    

Description Pavel Studeník 2016-12-12 10:12:17 UTC
Description of problem:
Create new SSL certification by WebUI /rhn/keys/CryptoKeysList.do and when I show list of repositories by spacewalk-report, the application run in infinite loop.

Version-Release number of selected component (if applicable):
spacewalk-reports-2.5.0-4.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. create new SSL and new repostiory
2. run spacewalk-report repositories

Actual results:
>> spacewalk-report repositories | head
org_id,id,repo_label,repo_type,source_url,client_key_descr,client_key_type,client_key,client_cert_descr,client_cert_type,client_cert,ca_descr,ca_type,ca_key
1,4032,test-channel,yum,http://yum.spacewalkproject.org/2.6-client/Fedora/24/x86_64/,RHN-ORG-TRUSTED-SSL-CERT,2,"Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 13541581495867390341 (0xbbed5c9fc62db985)
...

Expected results:
Correct finished.

Comment 1 Jiří Dostál 2016-12-22 14:47:43 UTC
After applying commits from 1405351 this issue was solved for me. Closing as duplicate.

*** This bug has been marked as a duplicate of bug 1405351 ***

Comment 2 Tomas Lestach 2016-12-22 16:26:11 UTC
I'd rather let QA formally test this issue.
I'm re-opening the bug and setting the 'Fixed In Version' filed according to Bug 1405351.

Comment 4 Radovan Drazny 2017-01-17 15:34:42 UTC
Verified on spacewalk-repositories-2.5.0-5. Created a new custom repo and assigned a new SSL certificate to it. 

# spacewalk-report repositories | head
org_id,id,repo_label,repo_type,source_url,client_key_descr,client_key_type,client_key,client_cert_descr,client_cert_type,client_cert,ca_descr,ca_type,ca_key
1,4584,Centos7,yum,http://mirror.centos.org/centos/7/os/x86_64/,,,,,,,Centos key,2,"-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.5 (GNU/Linux)

mQINBFOn/0sBEADLDyZ+DQHkcTHDQSE0a0B2iYAEXwpPvs67cJ4tmhe/iMOyVMh9
Yw/vBIF8scm6T/vPN5fopsKiW9UsAhGKg0epC6y5ed+NAUHTEa6pSOdo7CyFDwtn
4HF61Esyb4gzPT6QiSr0zvdTtgYBRZjAEPFVu3Dio0oZ5UQZ7fzdZfeixMQ8VMTQ
4y4x5vik9B+cqmGiq9AW71ixlDYVWasgR093fXiD9NLT4DTtK+KLGYNjJ8eMRqfZ
Ws7g7C+9aEGHfsGZ/SxLOumx/GfiTloal0dnq8TC7XQ/JuNdB9qjoXzRF+faDUsj
WuvNSQEqUXW1dzJjBvroEvgTdfCJfRpIgOrc256qvDMp1SxchMFltPlo5mbSMKu1


Only existing (non-null org) repos are listed.

VERIFIED