Bug 677775 - rhn_package_manager throws an exception if the password is wrong.
Summary: rhn_package_manager throws an exception if the password is wrong.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite Proxy 5
Classification: Red Hat
Component: Server
Version: 540
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Dimitar Yordanov
URL:
Whiteboard:
: 682887 (view as bug list)
Depends On:
Blocks: sat541-blockers sat541-rhel6-proxy sat541-rhn-tools
TreeView+ depends on / blocked
 
Reported: 2011-02-15 20:11 UTC by Dimitar Yordanov
Modified: 2011-06-17 06:22 UTC (History)
4 users (show)

Fixed In Version: spacewalk-proxy-1.2.2-9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-16 16:53:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dimitar Yordanov 2011-02-15 20:11:57 UTC
Description of problem:
rhn_package_manager  throws an exception if the password is wrong.

Version-Release number of selected component (if applicable):
spacewalk-proxy-package-manager-1.2.2-6.el5sat

How reproducible:
Always

Steps to Reproduce:
1.Install RHN Proxy
2.Install spacewalk-proxy-package-manager
3.Execute rhn_package_manager -s -c $CUSTOM_CHANNEL
4.Enter wrong password
  
Actual results:
Red Hat Network username: admin
Red Hat Network password: 
Traceback (most recent call last):
  File "/usr/bin/rhn_package_manager", line 28, in ?
    rhn_package_manager.main()
  File "/usr/share/rhn/PackageManager/rhn_package_manager.py", line 100, in main
    upload.checkSync()
  File "/usr/share/rhn/PackageManager/rhn_package_manager.py", line 174, in checkSync
    list = uploadLib.listChannel(self.server, self.username, self.password,


Expected results:
No traceback.

Additional info:

Comment 1 Dimitar Yordanov 2011-02-15 20:23:02 UTC
Even if the password is correct the result is the same (a "traceback").

Comment 2 Miroslav Suchý 2011-02-16 10:07:15 UTC
Your traceback is missing last (but quite important line). That line usually state, which error occurred.
Can you update it, please?

Comment 3 Dimitar Yordanov 2011-02-20 21:43:00 UTC
I am sorry. Sure, here it is:

Traceback (most recent call last):
  File "/usr/bin/rhn_package_manager", line 28, in ?
    rhn_package_manager.main()
  File "/usr/share/rhn/PackageManager/rhn_package_manager.py", line 100, in main
    upload.checkSync()
  File "/usr/share/rhn/PackageManager/rhn_package_manager.py", line 174, in checkSync
    list = uploadLib.listChannel(self.server, self.username, self.password,
AttributeError: 'module' object has no attribute 'listChannel'


I have just found out that this is a regression. The problem does not appear on RHN Proxy 5.3 (spacewalk-proxy-package-manager-0.5.7-14.el5sat).

Hope this will help.

Dimi

Comment 5 Miroslav Suchý 2011-05-04 15:32:34 UTC
This has been already fixed in spacewalk in commit c4cdd270c559ae9af9eaab49570810574f86e06d

Comment 6 Miroslav Suchý 2011-05-04 15:39:10 UTC
cherry picked to satellite as fd3efd2255202589702eb450db11dab8579ba5ea

Comment 8 Miroslav Suchý 2011-05-05 08:21:09 UTC
*** Bug 682887 has been marked as a duplicate of this bug. ***

Comment 10 Jan Pazdziora 2011-06-09 08:11:51 UTC
# rhn_package_manager -s -c xcv
Red Hat Network username: admin
Red Hat Network password: 

Error Class Code: 2
Error Class Info: Invalid username and password combination.
Explanation: 
     An error has occurred while processing your request. If this problem
     persists please enter a bug report at bugzilla.redhat.com.
     If you choose to submit the bug report, please be sure to include
     details of what you were trying to do when this error occurred and
     details on how to reproduce this problem.

# rpm -qf /usr/bin/rhn_package_manager
spacewalk-proxy-package-manager-1.2.2-11.el5sat
# 

Marking as RELEASE_PENDING.

Comment 11 Clifford Perry 2011-06-16 16:53:25 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0878.html


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