Bug 567901 - spacewalk-channel accepts username only on command line
Summary: spacewalk-channel accepts username only on command line
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: rhn-client-tools
Version: 12
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: space09
TreeView+ depends on / blocked
 
Reported: 2010-02-24 09:15 UTC by Jan Hutař
Modified: 2010-05-05 15:01 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-05-05 15:01:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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