Bug 531059
Summary: | Kickstart Profile Creation/Update results Internal Server Error (invalid character) due to cobbler | ||
---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Xixi <xdmoon> |
Component: | Server | Assignee: | Justin Sherrill <jsherril> |
Status: | CLOSED ERRATA | QA Contact: | Garik Khachikyan <gkhachik> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 530 | CC: | acavalla, cperry, jhutar, jkastner, mkoci, tao, xdmoon |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-11-10 14:26:23 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: | 518256 |
Description
Xixi
2009-10-26 18:14:58 UTC
Looks like the fix should be in rhn.manager.kickstart.cobbler.CobblerCommand.makeCobblerName(). Relevant code snippets below. src/com/redhat/rhn/manager/kickstart/cobbler/CobblerProfileCreateCommand.java: ... 71 Profile prof = Profile.create(con, CobblerCommand.makeCobblerName(this.ksData), 72 distro); ... src/com/redhat/rhn/manager/kickstart/cobbler/CobblerProfileEditCommand.java: ... 55 if (prof != null) { 56 if (!cobName.equals(prof.getName())) { 57 prof.setName(makeCobblerName(ksData)); 58 } 59 updateCobblerFields(prof); 60 } ... src/com/redhat/rhn/manager/kickstart/cobbler/CobblerCommand.java ... 125 public static String makeCobblerName(String label, Org org) { 126 if (org == null) { 127 return label.replace(' ', '-'); 128 } 129 String format = "%s:%s:%s"; 130 return String.format(format, label.replace(' ', '-'), org.getId(), 131 org.getName().replace(' ', '-')); 132 } ... 165 /** 166 * Make a cobbler name for a kickstart profile 167 * @param data the profile 168 * @return the name 169 */ 170 public static String makeCobblerName(KickstartData data) { 171 return makeCobblerName(data.getLabel(), data.getOrg()); 172 } ... fixed in spacewalk master: de23b16f7ca113515c691ab285053c3a86aebdd0 # VERIFIED checked in both rhel4 and rhel5 satellites - it's working with a commited versions of: spacewalk-taskomatic-0.5.44-49.el[4][5]sat.noarch.rpm spacewalk-java-lib-0.5.44-49.el[4][5]sat.noarch.rpm spacewalk-java-0.5.44-49.el[4][5]sat.noarch.rpm spacewalk-java-config-0.5.44-49.el[4][5]sat.noarch.rpm For the following org: "New 100$ org, hello! & bye*" preparation of ks profile does not lead to ISE. the url string for ks profile looks like: -- "http://<sat_url>/cblr/svc/op/ks/profile/testksfailingorg1:2:New100orghellobye" -O /root/cobbler.ks 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-2009-1566.html *** Bug 520055 has been marked as a duplicate of this bug. *** |