Bug 1065369
| Summary: | Display error/warning message when tried to set a very long value for the release version in the activation key | ||
|---|---|---|---|
| Product: | [Community] Candlepin (Migrated to Jira) | Reporter: | Rehana <redakkan> |
| Component: | candlepin | Assignee: | William Poteat <wpoteat> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 0.9 | CC: | bkearney, jsefler, wpoteat |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-09-24 14:16:22 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: | |
| Embargoed: | |||
|
Description
Rehana
2014-02-14 13:50:52 UTC
master commit a0db7c35f8d7ee71daeabaf39788b3f47206e0e0 Acking 7.1 Acking 7.1 This feature was delivered in 0.9.10. It is live in both the portal and satellite 6 Retested, # subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.9.35-1 subscription management rules: 5.11 subscription-manager: 1.13.8-1.el7 python-rhsm: 1.13.7-1.el7 Observed that now appropriate message "size must be between 0 and 255" is displayed when tried to set very long release version Creating actvationkey with release version: curl -H "Content-Type:application/json" -X POST -k -u admin:admin "https://server:8443/candlepin/owners/admin/activation_keys" -d '{"name":"actkey","releaseVer":"update_releaseversion123456789012345678901234567890123456789012345678901234567890123456789011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"}' {"displayMessage":"releaseVer: size must be between 0 and 255","requestUuid":"54a354ec-d1d1-4fa2-a4bb-a78efc263c0c"} Modifying release version: curl -H "Content-Type:application/json" -X PUT -k -u admin:admin "https://server:8443/candlepin/activation_keys/ff8080814983da4601499ddd22094528" -d '{"releaseVer":"update_releaseversion123456789012345678901234567890123456789012345678901234567890123456789011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"}' | python -mjson.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 400 0 116 100 284 83 204 0:00:01 0:00:01 --:--:-- 204 { "displayMessage": "releaseVer: size must be between 0 and 255", "requestUuid": "78f6feb7-352a-4d74-8e76-d1ef0a3ab74d" } Marking Verified. |