Package: apt-transport-spacewalk
Version: 1.0.6-2.1

-------- Forwarded Message --------
Subject:        Patch for apt-transport-spacewalk
Date:   Wed, 11 Feb 2015 16:09:07 +0100 (CET)
From:   Matthias Thubauville <[email protected]>
To:     [email protected]



Dear Bernd,

I found on this web page
(https://packages.debian.org/sid/apt-transport-spacewalk
<https://packages.debian.org/si>) that you are the maintainer for the package
named above.

I've been trying to connect a Debian 7.8 (Ubuntu 14.04) client to a spacewalk
proxy instance. To achieve this (in combination with the latest spacewalk proxy
sources) I had to apply the attached patch,
since the client sends requests starting with //XMLRPC or ///XMLRPC to the proxy
(which is not able to handle the first ones).

After the modifications the client sends only requests starting with /XMLRPC,
which is fine for both, a spacewalk proxy and a 'normal' spacewalk instance.

I hope you can verify my modifications and integrate the changes.

Thanks a lot for you help

Have a great day and all the best



Matthias Thubauville
______________________________________________________
Matthias Thubauville
(IT Consultant)

Tel:  +49 (0)89 452 35 38-120
Fax: +49 (0)89 452 35 38-290
E-Mail: [email protected]


ATIX - The Linux & Open Source Company

ATIX Informationstechnologie und Consulting AG
Einsteinstraße 10
85716 Unterschleißheim
www.atix.de

Registergericht: Amtsgericht München, Registernummer: HRB 168930
USt.-Id.: DE209485962
Vorstand: Thomas Merz (Vors.), Mark Hlawatschek, Jan R. Bergrath
Vorsitzender des Aufsichtsrats: Dr. Martin Buss



>From 6511d8d04d02b231be12f4f1966d26d13027f1e6 Mon Sep 17 00:00:00 2001
From: Matthias Thubauville <[email protected]>
Date: Thu, 5 Feb 2015 14:17:22 +0100
Subject: [PATCH] Fixed additional / in request to server
Changes:
 * Debian 7.8 / Ubuntu 14.04 clients work now also with spacewalk proxy
---
 spacewalk |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/spacewalk b/spacewalk
index 86df2a2..91afba8 100755
--- a/spacewalk
+++ b/spacewalk
@@ -194,7 +194,7 @@ class spacewalk_method(pkg_acquire_method):
         document = document.replace('dists/channels:/main/',
                 'dists/channels:/' + self.base_channel  + '/', 1)
         document = re.sub('/binary-[\d\w]*/', '/repodata/', document, 1)
-        document = document.replace('dists/channels:/', '/XMLRPC/GET-REQ/', 1)
+        document = document.replace('dists/channels:/', 'XMLRPC/GET-REQ/', 1)
         return document
   
   
@@ -220,7 +220,7 @@ class spacewalk_method(pkg_acquire_method):
         self.__init_headers()
         self.__make_conn()
   
-        self.conn.request("GET", "/" + document, headers = self.http_headers)
+        self.conn.request("GET", document, headers = self.http_headers)
         self.status(URI = self.uri, Message = 'Waiting for headers')
   
         res = self.conn.getresponse()
--
1.7.10.4

Reply via email to