Bug 577074
Summary: | Cobbler System Record Creation results in Internal Server Error (invalid character) & traceback | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Xixi <xdmoon> | ||||
Component: | Server | Assignee: | Jan Pazdziora <jpazdziora> | ||||
Status: | CLOSED ERRATA | QA Contact: | Dimitar Yordanov <dyordano> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 530 | CC: | cperry, dyordano, paji, psklenar, xdmoon | ||||
Target Milestone: | --- | Keywords: | Patch | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2010-11-18 08:29:15 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: | 518253 | ||||||
Attachments: |
|
Description
Xixi
2010-03-26 01:23:04 UTC
Code Snippets: java/code/src/com/redhat/rhn/manager/kickstart/cobbler/CobblerSystemCreateCommand.java 209 /** 210 * Store the System to cobbler 211 * @return ValidatorError if the store failed. 212 */ 213 public ValidatorError store() { 214 Profile profile = Profile.lookupByName(getCobblerConnection(), profileName); 215 // First lookup by MAC addr 216 SystemRecord rec = lookupExisting(); 217 if (rec == null) { 218 // Next try by name 219 rec = SystemRecord.lookupByName(getCobblerConnection(user), 220 getCobblerSystemRecordName()); 221 } 222 223 // Else, lets make a new system 224 if (rec == null) { 225 rec = SystemRecord.create(getCobblerConnection(), 226 getCobblerSystemRecordName(), 227 profile); 228 } 272 public String getCobblerSystemRecordName() { 273 String name = this.server.getName().replace(' ', '_'); 274 return name + ":" + 275 this.server.getOrg().getId(); 276 } Created attachment 402733 [details]
CobblerSystemCreateCommand.java.TEST.681463.1.patch
Proposed patch attached (thanks Paresh!) Applied the given patch .. Should be resolved as of http://git.fedorahosted.org/git/spacewalk.git/?p=spacewalk.git;a=commit;h=f953b36556acd47f7efae8aa476003b271af0f00 Thanks Paresh! Hi all, I have just verified the issue on RHEL 4 and RHEL 5, Red Hat Network (RHN) Satellite 5.3.0. Installing the following list of packages fixed the problem. spacewalk-java-0.5.44-88.el5sat.src.rpm spacewalk-taskomatic-0.5.44-88.el5sat.noarch.rpm spacewalk-java-0.5.44-88.el5sat.noarch.rpm spacewalk-java-config-0.5.44-88.el5sat.noarch.rpm spacewalk-java-lib-0.5.44-88.el5sat.noarch.rpm Regards Dimitar Yordanov 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/RHBA-2010-0897.html |