Changes to 'refs/tags/spacewalk-backend-1.9.49-1'
by Grant Gainey
Tag 'spacewalk-backend-1.9.49-1' created by Grant Gainey <ggainey(a)redhat.com> at 2013-05-21 20:43 +0000
Tagging package [spacewalk-backend] version [1.9.49-1] in directory [backend/].
Changes since spacewalk-backend-1.9.48-1:
Grant Gainey (2):
Turn off a pylint warning
Automatic commit of package [spacewalk-backend] release [1.9.49-1].
Jan Pazdziora (1):
965809 - Fix ISS authentication hole
---
backend/satellite_exporter/satexport.py | 24 ++++++++++++++++++++++++
backend/spacewalk-backend.spec | 6 +++++-
rel-eng/packages/spacewalk-backend | 2 +-
3 files changed, 30 insertions(+), 2 deletions(-)
---
11 years
Branch 'SPACEWALK-1.9' - 3 commits - backend/satellite_exporter backend/spacewalk-backend.spec rel-eng/packages
by Grant Gainey
backend/satellite_exporter/satexport.py | 24 ++++++++++++++++++++++++
backend/spacewalk-backend.spec | 6 +++++-
rel-eng/packages/spacewalk-backend | 2 +-
3 files changed, 30 insertions(+), 2 deletions(-)
New commits:
commit 0c06f91a76f40b4b7a64eb829f79b9a9ecf7e73c
Author: Grant Gainey <ggainey(a)redhat.com>
Date: Tue May 21 16:43:42 2013 -0400
Automatic commit of package [spacewalk-backend] release [1.9.49-1].
diff --git a/backend/spacewalk-backend.spec b/backend/spacewalk-backend.spec
index 4834f00..4a04a53 100644
--- a/backend/spacewalk-backend.spec
+++ b/backend/spacewalk-backend.spec
@@ -12,7 +12,7 @@ Name: spacewalk-backend
Summary: Common programs needed to be installed on the Spacewalk servers/proxies
Group: Applications/Internet
License: GPLv2
-Version: 1.9.48
+Version: 1.9.49
Release: 1%{?dist}
URL: https://fedorahosted.org/spacewalk
Source0: https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
@@ -638,6 +638,10 @@ rm -f %{rhnconf}/rhnSecret.py*
# $Id$
%changelog
+* Tue May 21 2013 Grant Gainey <ggainey(a)redhat.com> 1.9.49-1
+- Turn off a pylint warning
+- 965809 - Fix ISS authentication hole
+
* Thu Mar 28 2013 Jan Pazdziora 1.9.48-1
- fixing column name in postgresql
diff --git a/rel-eng/packages/spacewalk-backend b/rel-eng/packages/spacewalk-backend
index 10abe46..e37a3e2 100644
--- a/rel-eng/packages/spacewalk-backend
+++ b/rel-eng/packages/spacewalk-backend
@@ -1 +1 @@
-1.9.48-1 backend/
+1.9.49-1 backend/
commit 08a70156c13485da4c4f1fa66f4da84be4ac8ca2
Author: Grant Gainey <ggainey(a)redhat.com>
Date: Tue May 21 16:15:33 2013 -0400
Turn off a pylint warning
diff --git a/backend/satellite_exporter/satexport.py b/backend/satellite_exporter/satexport.py
index ff30bed..1053818 100644
--- a/backend/satellite_exporter/satexport.py
+++ b/backend/satellite_exporter/satexport.py
@@ -183,6 +183,7 @@ class ApacheServer(BaseApacheServer):
log_debug(4, "Exiting OK")
return apache.OK
+ # pylint: disable=R0201
def get_function(self, method_name, req):
self.auth_system(req)
# Get the module name
commit 5ceee34c5056ae708868b81a381b98bb3e1e2d26
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Tue May 21 13:50:39 2013 -0400
965809 - Fix ISS authentication hole
diff --git a/backend/satellite_exporter/satexport.py b/backend/satellite_exporter/satexport.py
index b9eb8b6..ff30bed 100644
--- a/backend/satellite_exporter/satexport.py
+++ b/backend/satellite_exporter/satexport.py
@@ -29,6 +29,8 @@ from spacewalk.server import rhnSQL, rhnImport
from spacewalk.satellite_tools.disk_dumper.dumper import ClosedConnectionError
from spacewalk.satellite_tools import constants
+from rhn.connections import idn_ascii_to_pune
+
class BaseApacheServer:
def __init__(self):
# Init log to stderr
@@ -182,6 +184,7 @@ class ApacheServer(BaseApacheServer):
return apache.OK
def get_function(self, method_name, req):
+ self.auth_system(req)
# Get the module name
idx = method_name.rfind('.')
module_name, function_name = method_name[:idx], method_name[idx+1:]
@@ -199,6 +202,26 @@ class ApacheServer(BaseApacheServer):
(module_name, function_name))
return f
+ def auth_system(self, req):
+ if CFG.DISABLE_ISS:
+ raise rhnFault(2005, _('ISS is disabled on this satellite.'))
+
+ if CFG.ALLOWED_ISS_SLAVES:
+ if not isinstance(CFG.ALLOWED_ISS_SLAVES, list):
+ allowed_iss_slaves = [CFG.ALLOWED_ISS_SLAVES]
+ else:
+ allowed_iss_slaves = CFG.ALLOWED_ISS_SLAVES
+ allowed_iss_slaves = [idn_ascii_to_pune(x) for x in allowed_iss_slaves]
+ else:
+ allowed_iss_slaves = []
+
+ remote_hostname = req.get_remote_host(apache.REMOTE_DOUBLE_REV)
+ if remote_hostname not in allowed_iss_slaves:
+ raise rhnFault(2004,
+ _('Server "%s" is not enabled for ISS.')
+ % remote_hostname)
+ return remote_hostname
+
@staticmethod
def _validate_version(req):
server_version = constants.PROTOCOL_VERSION
11 years
Changes to 'refs/tags/spacewalk-java-1.10.79-1'
by Grant Gainey
Tag 'spacewalk-java-1.10.79-1' created by Grant Gainey <ggainey(a)redhat.com> at 2013-05-21 20:42 +0000
Tagging package [spacewalk-java] version [1.10.79-1] in directory [java/].
Changes since spacewalk-backend-1.10.35-1:
Grant Gainey (1):
Automatic commit of package [spacewalk-java] release [1.10.79-1].
Silvio Moioli (1):
Provide way to build Eclipse .classpath even in the absence of required jars
---
java/build.xml | 14 ++++++++++++--
java/spacewalk-java.spec | 5 ++++-
rel-eng/packages/spacewalk-java | 2 +-
3 files changed, 17 insertions(+), 4 deletions(-)
---
11 years
2 commits - java/build.xml java/spacewalk-java.spec rel-eng/packages
by Grant Gainey
java/build.xml | 14 ++++++++++++--
java/spacewalk-java.spec | 5 ++++-
rel-eng/packages/spacewalk-java | 2 +-
3 files changed, 17 insertions(+), 4 deletions(-)
New commits:
commit 3c89791108bfe6fb7ff055ca585ef182d26d863b
Author: Grant Gainey <ggainey(a)redhat.com>
Date: Tue May 21 16:42:28 2013 -0400
Automatic commit of package [spacewalk-java] release [1.10.79-1].
diff --git a/java/spacewalk-java.spec b/java/spacewalk-java.spec
index 212af19..11e0021 100644
--- a/java/spacewalk-java.spec
+++ b/java/spacewalk-java.spec
@@ -28,7 +28,7 @@ Name: spacewalk-java
Summary: Spacewalk Java site packages
Group: Applications/Internet
License: GPLv2
-Version: 1.10.78
+Version: 1.10.79
Release: 1%{?dist}
URL: https://fedorahosted.org/spacewalk
Source0: https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
@@ -751,6 +751,9 @@ fi
%{jardir}/postgresql-jdbc.jar
%changelog
+* Tue May 21 2013 Grant Gainey <ggainey(a)redhat.com> 1.10.79-1
+- Provide way to build Eclipse .classpath even in the absence of required jars
+
* Tue May 21 2013 Tomas Kasparek <tkasparek(a)redhat.com> 1.10.78-1
- misc branding clean up
- branding clean-up of logrotate files
diff --git a/rel-eng/packages/spacewalk-java b/rel-eng/packages/spacewalk-java
index 8d87065..13b3903 100644
--- a/rel-eng/packages/spacewalk-java
+++ b/rel-eng/packages/spacewalk-java
@@ -1 +1 @@
-1.10.78-1 java/
+1.10.79-1 java/
commit b310f563f0f9df7ae3a57920bf9119f2cd94ed10
Author: Silvio Moioli <smoioli(a)suse.de>
Date: Tue May 21 16:38:43 2013 -0400
Provide way to build Eclipse .classpath even in the absence of required jars
diff --git a/java/build.xml b/java/build.xml
index 1431394..6077bb6 100644
--- a/java/build.xml
+++ b/java/build.xml
@@ -61,8 +61,8 @@
</copy>
</target>
- <!-- Generates Eclipse classpath -->
- <target name="gen-eclipse" depends="link-jars"
+ <!-- Generates Eclipse .classpath -->
+ <target name="gen-eclipse-base" depends="resolve"
description = "Generates eclipse .classpath file">
<exec executable="${basedir}/scripts/gen-eclipse.py"
output="${basedir}/.classpath" >
@@ -70,6 +70,11 @@
</exec>
</target>
+ <!-- Generates Eclipse classpath after setting up dependent jars -->
+ <target name="gen-eclipse" depends="gen-eclipse-base, link-jars"
+ description = "Generates eclipse .classpath file after linking jars">
+ </target>
+
<target name="missingstrings"
description="prints out a report with untranslated strings.">
<mkdir dir="${report.dir}" />
@@ -929,6 +934,11 @@ delete from rhnChannel where label like 'ChannelLabel%';
</delete>
</target>
+ <!--
+ Set up Eclipse project files
+ NOTE: If this fails due to missing-jars, and you want to continue,
+ then execute "ant gen-eclipse-base" and retry
+ -->
<target name="make-eclipse-project" depends = "gen-eclipse"
description="Configures this checkout as an eclipse project.">
<copy toDir="${rhn-home}" overwrite="false">
11 years
Changes to 'refs/tags/spacewalk-backend-1.10.35-1'
by Grant Gainey
Tag 'spacewalk-backend-1.10.35-1' created by Grant Gainey <ggainey(a)redhat.com> at 2013-05-21 20:15 +0000
Tagging package [spacewalk-backend] version [1.10.35-1] in directory [backend/].
Changes since spacewalk-backend-1.10.34-1:
Grant Gainey (2):
Turn off a pylint warning
Automatic commit of package [spacewalk-backend] release [1.10.35-1].
---
backend/satellite_exporter/satexport.py | 1 +
backend/spacewalk-backend.spec | 5 ++++-
rel-eng/packages/spacewalk-backend | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)
---
11 years
2 commits - backend/satellite_exporter backend/spacewalk-backend.spec rel-eng/packages
by Grant Gainey
backend/satellite_exporter/satexport.py | 1 +
backend/spacewalk-backend.spec | 5 ++++-
rel-eng/packages/spacewalk-backend | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)
New commits:
commit 0942d1316b514caccf37922f47978298dd15c3b0
Author: Grant Gainey <ggainey(a)redhat.com>
Date: Tue May 21 16:15:55 2013 -0400
Automatic commit of package [spacewalk-backend] release [1.10.35-1].
diff --git a/backend/spacewalk-backend.spec b/backend/spacewalk-backend.spec
index 264df92..1e66ec2 100644
--- a/backend/spacewalk-backend.spec
+++ b/backend/spacewalk-backend.spec
@@ -12,7 +12,7 @@ Name: spacewalk-backend
Summary: Common programs needed to be installed on the Spacewalk servers/proxies
Group: Applications/Internet
License: GPLv2
-Version: 1.10.34
+Version: 1.10.35
Release: 1%{?dist}
URL: https://fedorahosted.org/spacewalk
Source0: https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
@@ -637,6 +637,9 @@ rm -f %{rhnconf}/rhnSecret.py*
# $Id$
%changelog
+* Tue May 21 2013 Grant Gainey <ggainey(a)redhat.com> 1.10.35-1
+- Turn off a pylint warning
+
* Tue May 21 2013 Grant Gainey <ggainey(a)redhat.com> 1.10.34-1
- 965809 - Fix ISS authentication hole
diff --git a/rel-eng/packages/spacewalk-backend b/rel-eng/packages/spacewalk-backend
index f8ff15a..d4f6130 100644
--- a/rel-eng/packages/spacewalk-backend
+++ b/rel-eng/packages/spacewalk-backend
@@ -1 +1 @@
-1.10.34-1 backend/
+1.10.35-1 backend/
commit b2d9cffe71e6348ae2caa2ba1ba40b62020e348a
Author: Grant Gainey <ggainey(a)redhat.com>
Date: Tue May 21 16:15:33 2013 -0400
Turn off a pylint warning
diff --git a/backend/satellite_exporter/satexport.py b/backend/satellite_exporter/satexport.py
index ff30bed..1053818 100644
--- a/backend/satellite_exporter/satexport.py
+++ b/backend/satellite_exporter/satexport.py
@@ -183,6 +183,7 @@ class ApacheServer(BaseApacheServer):
log_debug(4, "Exiting OK")
return apache.OK
+ # pylint: disable=R0201
def get_function(self, method_name, req):
self.auth_system(req)
# Get the module name
11 years
Changes to 'refs/tags/spacewalk-backend-1.10.34-1'
by Grant Gainey
Tag 'spacewalk-backend-1.10.34-1' created by Grant Gainey <ggainey(a)redhat.com> at 2013-05-21 19:30 +0000
Tagging package [spacewalk-backend] version [1.10.34-1] in directory [backend/].
Changes since spacewalk-schema-1.10.36-1:
Grant Gainey (1):
Automatic commit of package [spacewalk-backend] release [1.10.34-1].
Jan Pazdziora (1):
965809 - Fix ISS authentication hole
---
backend/satellite_exporter/satexport.py | 23 +++++++++++++++++++++++
backend/spacewalk-backend.spec | 5 ++++-
rel-eng/packages/spacewalk-backend | 2 +-
3 files changed, 28 insertions(+), 2 deletions(-)
---
11 years
2 commits - backend/satellite_exporter backend/spacewalk-backend.spec rel-eng/packages
by Grant Gainey
backend/satellite_exporter/satexport.py | 23 +++++++++++++++++++++++
backend/spacewalk-backend.spec | 5 ++++-
rel-eng/packages/spacewalk-backend | 2 +-
3 files changed, 28 insertions(+), 2 deletions(-)
New commits:
commit 61c4bed14fbdc73d9e437a3d3061db860d6400d7
Author: Grant Gainey <ggainey(a)redhat.com>
Date: Tue May 21 15:30:30 2013 -0400
Automatic commit of package [spacewalk-backend] release [1.10.34-1].
diff --git a/backend/spacewalk-backend.spec b/backend/spacewalk-backend.spec
index fd04bc8..264df92 100644
--- a/backend/spacewalk-backend.spec
+++ b/backend/spacewalk-backend.spec
@@ -12,7 +12,7 @@ Name: spacewalk-backend
Summary: Common programs needed to be installed on the Spacewalk servers/proxies
Group: Applications/Internet
License: GPLv2
-Version: 1.10.33
+Version: 1.10.34
Release: 1%{?dist}
URL: https://fedorahosted.org/spacewalk
Source0: https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
@@ -637,6 +637,9 @@ rm -f %{rhnconf}/rhnSecret.py*
# $Id$
%changelog
+* Tue May 21 2013 Grant Gainey <ggainey(a)redhat.com> 1.10.34-1
+- 965809 - Fix ISS authentication hole
+
* Tue May 21 2013 Tomas Kasparek <tkasparek(a)redhat.com> 1.10.33-1
- branding clean-up of spacewalk-backend
- branding clean-up of logrotate files
diff --git a/rel-eng/packages/spacewalk-backend b/rel-eng/packages/spacewalk-backend
index c6befa3..f8ff15a 100644
--- a/rel-eng/packages/spacewalk-backend
+++ b/rel-eng/packages/spacewalk-backend
@@ -1 +1 @@
-1.10.33-1 backend/
+1.10.34-1 backend/
commit 99771bb4759079291a852daec60a7f5afa0e40eb
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Tue May 21 13:50:39 2013 -0400
965809 - Fix ISS authentication hole
diff --git a/backend/satellite_exporter/satexport.py b/backend/satellite_exporter/satexport.py
index b9eb8b6..ff30bed 100644
--- a/backend/satellite_exporter/satexport.py
+++ b/backend/satellite_exporter/satexport.py
@@ -29,6 +29,8 @@ from spacewalk.server import rhnSQL, rhnImport
from spacewalk.satellite_tools.disk_dumper.dumper import ClosedConnectionError
from spacewalk.satellite_tools import constants
+from rhn.connections import idn_ascii_to_pune
+
class BaseApacheServer:
def __init__(self):
# Init log to stderr
@@ -182,6 +184,7 @@ class ApacheServer(BaseApacheServer):
return apache.OK
def get_function(self, method_name, req):
+ self.auth_system(req)
# Get the module name
idx = method_name.rfind('.')
module_name, function_name = method_name[:idx], method_name[idx+1:]
@@ -199,6 +202,26 @@ class ApacheServer(BaseApacheServer):
(module_name, function_name))
return f
+ def auth_system(self, req):
+ if CFG.DISABLE_ISS:
+ raise rhnFault(2005, _('ISS is disabled on this satellite.'))
+
+ if CFG.ALLOWED_ISS_SLAVES:
+ if not isinstance(CFG.ALLOWED_ISS_SLAVES, list):
+ allowed_iss_slaves = [CFG.ALLOWED_ISS_SLAVES]
+ else:
+ allowed_iss_slaves = CFG.ALLOWED_ISS_SLAVES
+ allowed_iss_slaves = [idn_ascii_to_pune(x) for x in allowed_iss_slaves]
+ else:
+ allowed_iss_slaves = []
+
+ remote_hostname = req.get_remote_host(apache.REMOTE_DOUBLE_REV)
+ if remote_hostname not in allowed_iss_slaves:
+ raise rhnFault(2004,
+ _('Server "%s" is not enabled for ISS.')
+ % remote_hostname)
+ return remote_hostname
+
@staticmethod
def _validate_version(req):
server_version = constants.PROTOCOL_VERSION
11 years
Changes to 'refs/tags/spacewalk-schema-1.10.36-1'
by Milan Zazrivec
Tag 'spacewalk-schema-1.10.36-1' created by Milan Zazrivec <mzazrivec(a)redhat.com> at 2013-05-21 16:31 +0000
Tagging package [spacewalk-schema] version [1.10.36-1] in directory [schema/spacewalk/].
Changes since rhnmd-5.3.17-1:
Milan Zazrivec (2):
Don't alter views
Automatic commit of package [spacewalk-schema] release [1.10.36-1].
---
rel-eng/packages/spacewalk-schema | 2 -
schema/spacewalk/spacewalk-schema.spec | 5 +++-
schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/132-tables-timestamps.sql.oracle | 12 +++++-----
schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/132-tables-timestamps.sql.postgresql | 2 -
4 files changed, 13 insertions(+), 8 deletions(-)
---
11 years
2 commits - rel-eng/packages schema/spacewalk
by Milan Zazrivec
rel-eng/packages/spacewalk-schema | 2 -
schema/spacewalk/spacewalk-schema.spec | 5 +++-
schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/132-tables-timestamps.sql.oracle | 12 +++++-----
schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/132-tables-timestamps.sql.postgresql | 2 -
4 files changed, 13 insertions(+), 8 deletions(-)
New commits:
commit 04ed79b749b1f50596b65af6da5f422faea268de
Author: Milan Zazrivec <mzazrivec(a)redhat.com>
Date: Tue May 21 18:31:40 2013 +0200
Automatic commit of package [spacewalk-schema] release [1.10.36-1].
diff --git a/rel-eng/packages/spacewalk-schema b/rel-eng/packages/spacewalk-schema
index 08f6b01..52de61b 100644
--- a/rel-eng/packages/spacewalk-schema
+++ b/rel-eng/packages/spacewalk-schema
@@ -1 +1 @@
-1.10.35-1 schema/spacewalk/
+1.10.36-1 schema/spacewalk/
diff --git a/schema/spacewalk/spacewalk-schema.spec b/schema/spacewalk/spacewalk-schema.spec
index 6018794..1ac0a3c 100644
--- a/schema/spacewalk/spacewalk-schema.spec
+++ b/schema/spacewalk/spacewalk-schema.spec
@@ -4,7 +4,7 @@ Name: spacewalk-schema
Group: Applications/Internet
Summary: Oracle SQL schema for Spacewalk server
-Version: 1.10.35
+Version: 1.10.36
Release: 1%{?dist}
Source0: %{name}-%{version}.tar.gz
@@ -71,6 +71,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/spacewalk-sql*
%changelog
+* Tue May 21 2013 Milan Zazrivec <mzazrivec(a)redhat.com> 1.10.36-1
+- schema upgrade: don't alter table views
+
* Tue May 21 2013 Michael Mraka <michael.mraka(a)redhat.com> 1.10.35-1
- 961547 - fixed filename lenght in rhnErrataFileTmp
commit c5cf064c769138c2bedefe6c874c236f6a009044
Author: Milan Zazrivec <mzazrivec(a)redhat.com>
Date: Tue May 21 18:30:12 2013 +0200
Don't alter views
diff --git a/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/132-tables-timestamps.sql.oracle b/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/132-tables-timestamps.sql.oracle
index ff4ecc8..da22f56 100644
--- a/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/132-tables-timestamps.sql.oracle
+++ b/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/132-tables-timestamps.sql.oracle
@@ -5,11 +5,13 @@ declare
update_stmt varchar2(4000);
begin
for tab in (
- select distinct table_name
- from user_tab_columns
- where table_name not like '%$%'
- and data_type = 'DATE'
- order by table_name
+ select distinct utc.table_name
+ from user_tab_columns utc,
+ user_tables ut
+ where utc.table_name not like '%$%'
+ and ut.table_name = utc.table_name
+ and utc.data_type = 'DATE'
+ order by utc.table_name
) loop
update_stmt := 'update ' || tab.table_name || ' set ';
for col in (select column_name
diff --git a/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/132-tables-timestamps.sql.postgresql b/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/132-tables-timestamps.sql.postgresql
index c8f457b..e7d8ad9 100644
--- a/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/132-tables-timestamps.sql.postgresql
+++ b/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/132-tables-timestamps.sql.postgresql
@@ -1,2 +1,2 @@
--- oracle equivalent source sha1 e670360a16190d53e8c96f50181c5820cea854a7
+-- oracle equivalent source sha1 864b6d99d7c79e4037f469d8d9d403b58e643a8e
-- This file is intentionally left empty.
11 years