Bug 558628 - Accessing kickstart from Proxy - rewrite does not work for /cblr/svc/op/ks/* url
Summary: Accessing kickstart from Proxy - rewrite does not work for /cblr/svc/op/ks/* url
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite Proxy 5
Classification: Red Hat
Component: Server
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Garik Khachikyan
URL:
Whiteboard:
Depends On: 543879
Blocks: sat531-blockers
TreeView+ depends on / blocked
 
Reported: 2010-01-25 20:37 UTC by Justin Sherrill
Modified: 2015-01-04 21:57 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 543879
Environment:
Last Closed: 2010-02-16 08:41:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0107 0 normal SHIPPED_LIVE spacewalk-proxy-installer bug fix update 2010-02-16 08:41:01 UTC

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


Note You need to log in before you can comment on or make changes to this bug.