Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 863243 Details for
Bug 1063808
Custom info with empty value can be added to system
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch - java part
0001-1063808-Custom-info-empty-value-added-java-api.patch (text/plain), 1.24 KB, created by
Dimitar Yordanov
on 2014-02-14 12:12:37 UTC
(
hide
)
Description:
Patch - java part
Filename:
MIME Type:
Creator:
Dimitar Yordanov
Created:
2014-02-14 12:12:37 UTC
Size:
1.24 KB
patch
obsolete
>From cf5fcdef47dadcad7481f784813b62f3611a609e Mon Sep 17 00:00:00 2001 >From: Dimitar Yordanov <dyordano@redhat.com> >Date: Fri, 14 Feb 2014 10:39:34 +0100 >Subject: [PATCH] 1063808 - Custom info empty value added (java/api) > >--- > java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java b/java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java >index ba76c0a..4626a0b 100644 >--- a/java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java >+++ b/java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java >@@ -1831,7 +1831,8 @@ public class SystemHandler extends BaseHandler { > Set<String> keys = values.keySet(); > for (Iterator<String> itr = keys.iterator(); itr.hasNext();) { > String label = itr.next(); >- if (org.hasCustomDataKey(label)) { >+ String value = StringUtils.trim(values.get(label).toString()); >+ if (org.hasCustomDataKey(label) && !value.isEmpty()) { > server.addCustomDataValue(label, values.get(label).toString(), > loggedInUser); > } >-- >1.8.3.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1063808
:
862957
| 863243