Description of problem: This looks to be a regression from Erratum RHBA-2016:1866-1 When creating a kickstart profile in 5.6 the media_path get incorrectly set to the /rhn/kickstart/ path which results in the request getting sent directly to tomcat resulting in a 404. the media path should most likely be the /ks/dist path so the url is properly handed by the rewrite rule in apache: RewriteRule ^/ks/dist(.*)$ /rhn/common/DownloadFile.do?url=/ks/dist$1 code commit where problem introduced in commit b3e3e1609102d4486a38d905a4a9064f8731d5d0 +++ b/java/code/src/com/redhat/rhn/manager/kickstart/cobbler/CobblerProfileCommand.java @@ -106,6 +106,9 @@ public abstract class CobblerProfileCommand extends CobblerCommand { Map meta = profile.getKsMeta(); meta.put("org", this.ksData.getOrg().getId()); + if (this.ksData.getUrl().startsWith("/")) { + meta.put("media_path", this.ksData.getUrl()); + } profile.setKsMeta(meta);
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:3444