Bug 567901

Summary: spacewalk-channel accepts username only on command line
Product: [Fedora] Fedora Reporter: Jan Hutař <jhutar>
Component: rhn-client-toolsAssignee: Miroslav Suchý <msuchy>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 12CC: msuchy
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-05 15:01:19 UTC Type: ---
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: 559281    

Description Jan Hutař 2010-02-24 09:15:01 UTC
Description of problem:
spacewalk-channel accepts username only on command line (option --user). When I omit it, it asks me for it interactively, but then fails.


Version-Release number of selected component (if applicable):
rhn-setup-0.8.12-1.fc12.x86_64


How reproducible:
always


Steps to Reproduce:
1. # spacewalk-channel --list
2. # spacewalk-channel --remove --channel fedora12-x86_64-debug


Actual results:
It will ask for username and password and then fails.


Expected results:
It should work nicely, as when I add "--user admin --password admin" to the command line.


Additional info:
# spacewalk-channel --remove --channel fedora12-x86_64-debug --password admin
Username: 
admin
Error validating data at server:

Error Message:
    Invalid username/password combination
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.

When I enter username on the command-line and omit password, it works as expected.

Comment 1 Miroslav Suchý 2010-02-24 09:45:22 UTC
commited to spacewalk as bb748540104fc834ead706bb6c4ac45659b6cd98

do not write new line after the prompt Username:
strip new line from the user name

Comment 2 Miroslav Suchý 2010-05-05 15:01:19 UTC
This bug has been fixed in Spacewalk 1.0.
Closing.