Bug 558628

Summary: Accessing kickstart from Proxy - rewrite does not work for /cblr/svc/op/ks/* url
Product: Red Hat Satellite Proxy 5 Reporter: Justin Sherrill <jsherril>
Component: ServerAssignee: Miroslav Suchý <msuchy>
Status: CLOSED ERRATA QA Contact: Garik Khachikyan <gkhachik>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: cperry, gkhachik, mdavis, mkoci, msuchy, tao, vgaikwad
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 543879 Environment:
Last Closed: 2010-02-16 08:41:05 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: 543879    
Bug Blocks: 518256    

Comment 1 Justin Sherrill 2010-01-25 21:17:46 UTC
Cloning for proxy


Fixed in Spacewalk master:
4020f83a33f6a4ecb332b0af67f956810ba9fab3
a11267710081ed3d70f41d67b631e8dc053ce625

Comment 2 Justin Sherrill 2010-01-26 18:34:38 UTC
So I've got a fix for this.  It requires two changes, one to the java code and
other to the proxy's http config files.  Since there's no way to update the
proxy's config files automatically, once the fix is released for 5.3 it will
require the customer to either 

a) re-install the proxy (or install a new one)
b) modify a http config file on the proxy manually

The file needing modification is /etc/httpd/conf.d/cobbler-proxy.conf

Simply add the following line to the *top* of the file (NOT THE BOTTOM):

RewriteRule ^/cblr/svc/op/ks/(.*)$ /download/$0 [P,L]


Basically what this does is rewrites all /cblr/svc/op/ks/FOO urls to
/download/cblr/svc/op/ks/FOO.  This then gets redirected to the satellite which
fetches /cblr/svc/op/ks/FOO from the cobbler server and does the rewrite.  



Fixed in Spacewalk master:
4020f83a33f6a4ecb332b0af67f956810ba9fab3
a11267710081ed3d70f41d67b631e8dc053ce625

Comment 4 Garik Khachikyan 2010-02-09 16:59:16 UTC
# FAILED_QA

still the satellite FQDN is shown in ks while accessing through proxy.

Comment 5 Justin Sherrill 2010-02-09 21:00:29 UTC
b1558bcc29b1ace17a36913ccbcc9572e97f086a

So i had to set the content length on the java side of things (not sure why this was not needed in my tests)

and I made some changes to the installer for it to work through SSL, please test with http & https .

Comment 9 errata-xmlrpc 2010-02-16 08:41:05 UTC
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-0107.html