Bug 639320
| Summary: | Entitlement Certificate with serial number 57,867,160,117,995 could not be found. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | John Sefler <jsefler> |
| Component: | subscription-manager | Assignee: | Bryan Kearney <bkearney> |
| Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 6.1 | CC: | bkearney, shaines |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-05-19 13:42:34 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: | 568421 | ||
|
Description
John Sefler
2010-10-01 12:54:20 UTC
Fix in
sha: 3e49f9daf3020b1d721c1e83421930855f9953c3 [rhsm]
sha: 2b5bc5260836b4f602bf8efc95d12c60a0fdb1b5 [candlepin]
In case of subscription manager, no check was done to determine whether the input was a number. On the server side, functionality has been changed to return http code: 400(badly formed request).
Examples:
1) Unsubscribe with a non-existing serial number.
[ajay@garuda-rh src{master}]$ sudo ./subscription-manager-cli unsubscribe --serial=123812982392934324
Entitlement Certificate with serial number 123,812,982,392,934,324 could not be found.
2) Unsubscribe with a very very long serial number
[ajay@garuda-rh src{master}]$ sudo ./subscription-manager-cli unsubscribe --serial=1238129823929343242934823974923747239497942
1238129823929343242934823974923747239497942 is not a valid value for serial
3) Unsubscribe with a Nan
[ajay@garuda-rh src{master}]$ sudo ./subscription-manager-cli unsubscribe --serial=NOT_A_NUMBER
'NOT_A_NUMBER' is not a valid serial number
Ajay, I think you misread the original description. The problem is the commas should not be there. The error handling is improved but the problem John described has not been fixed: [root@jweiss-rhel6-1 src]# ./subscription-manager-cli unsubscribe --serial=123812982392934324 Entitlement Certificate with serial number 123,812,982,392,934,324 could not be found. commit 243c44544ccb2ecdaf8963500b36ce81a5aa5dd6 Fix in sha: 2d7bb319c7278468040253700c4c2fb5cf5da181
[ajay@garuda-rh src{master}]$ sudo ./subscription-manager-cli unsubscribe --serial=123432423423423
Entitlement Certificate with serial number 123432423423423 could not be found
VERIFIED... # rpm -q subscription-manager subscription-manager-0.89-1.git.2.f5b5a45.fc12.i386 # subscription-manager-cli unsubscribe --serial FOOBAR 'FOOBAR' is not a valid serial number # subscription-manager-cli unsubscribe --serial 1234567890 Entitlement Certificate with serial number 1234567890 could not be found. # subscription-manager-cli unsubscribe --serial 11111111111111111111111111111111111111111111111111111111110 11111111111111111111111111111111111111111111111111111111110 is not a valid value for serial # subscription-manager-cli unsubscribe --serial 11 Entitlement Certificate with serial number 11 could not be found. # subscription-manager-cli unsubscribe --serial 1111111111 Entitlement Certificate with serial number 1111111111 could not be found. # subscription-manager-cli unsubscribe --serial x 'x' is not a valid serial number # subscription-manager-cli unsubscribe --serial Usage: subscription-manager-cli unsubscribe [OPTIONS] subscription-manager-cli: error: --serial option requires an argument 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/RHEA-2011-0611.html |