Bug 1063808
| Summary: | Custom info with empty value can be added to system | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Lukáš Hellebrandt <lhellebr> | ||||||
| Component: | API | Assignee: | Tomas Lestach <tlestach> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Lukáš Hellebrandt <lhellebr> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 560 | CC: | cperry, dyordano | ||||||
| Target Milestone: | --- | Keywords: | Patch | ||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | rhn-custom-info-5.4.22-1 spacewalk-java-2.3.8-9 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2015-01-13 09:55:02 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: | |||||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 1127641 | ||||||||
| Attachments: |
|
||||||||
|
Description
Lukáš Hellebrandt
2014-02-11 13:21:52 UTC
Ad test-rhn-custom-info:
client.system.setCustomValues(session, sysID, {keyLabel: ''})
Created attachment 862957 [details]
Patch for the rhn-custom-info python part
Dimitar, thank you for the patch, I committed it as ... spacewalk.git: 1d893694cebf56245ac0034fb41c6addff1e888f Leaving the BZ in NEW state, as only part of the fix is available. Created attachment 863243 [details]
Patch - java part
Dimitar, could you make a pull request, please? The patch looks good, there's just no need to call "toString()" method since the StringUtils.trim() already return a string. Hi Tomas, Thanks for taking a look. I have created the following PR: https://github.com/spacewalkproject/spacewalk/pull/138 Dimi PR request applied, then you! spacewalk.git: 3517961217bafb51cd55ca7a6cf7ff266e16f731 Verified. An attempt to set an empty value now fails with "Not valid value is provided for key/value pairs" error. With the release of Red Hat Satellite 5.7 on January 12th 2015 this bug is being moved to a Closed Current Release state. The Satellite 5.7 GA Errata: - https://rhn.redhat.com/errata/RHSA-2015-0033.html Satellite 5.7 Release Notes: - https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.7/html-single/Release_Notes/index.html Satellite Customer Portal Blog announcement for release: - https://access.redhat.com/blogs/1169563/posts/1315743 Cliff |