monitoring/SputLite/SputLite.spec | 6 +++++-
monitoring/SputLite/html/cgi-bin/upload_results.cgi | 2 +-
rel-eng/packages/SputLite | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)
New commits:
commit b98f22686b374c65750343f6aec9e8a9ab292bcc
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Tue Nov 29 08:25:36 2011 +0100
Automatic commit of package [SputLite] release [1.6.3-1].
diff --git a/monitoring/SputLite/SputLite.spec b/monitoring/SputLite/SputLite.spec
index 00445f9..69af4d5 100644
--- a/monitoring/SputLite/SputLite.spec
+++ b/monitoring/SputLite/SputLite.spec
@@ -5,7 +5,7 @@
%define vardir /var/lib/nocpulse
Name: SputLite
Source0:
https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
-Version: 1.6.2
+Version: 1.6.3
Release: 1%{?dist}
Summary: Command queue processor (Sputnik Lite)
URL:
https://fedorahosted.org/spacewalk
@@ -98,6 +98,10 @@ fi
rm -rf $RPM_BUILD_ROOT
%changelog
+* Tue Nov 29 2011 Jan Pazdziora 1.6.3-1
+- Correct fix for the vn_rhn_command_queue_execs_stderr constraint issue.
+- Revert "postgres seems to reject empty text for stdout and stderr column"
+
* Mon Nov 28 2011 Miroslav Suchý 1.6.2-1
- replace sysdate with current_timestamp (mc(a)suse.de)
- postgres seems to reject empty text for stdout and stderr column (mc(a)suse.de)
diff --git a/rel-eng/packages/SputLite b/rel-eng/packages/SputLite
index 07577ef..d5f857d 100644
--- a/rel-eng/packages/SputLite
+++ b/rel-eng/packages/SputLite
@@ -1 +1 @@
-1.6.2-1 monitoring/SputLite/
+1.6.3-1 monitoring/SputLite/
commit 6fe5acfe48abd7e07ef2f87da7422a6bf13dbd23
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Tue Nov 29 08:24:51 2011 +0100
Correct fix for the vn_rhn_command_queue_execs_stderr constraint issue.
diff --git a/monitoring/SputLite/html/cgi-bin/upload_results.cgi
b/monitoring/SputLite/html/cgi-bin/upload_results.cgi
index 913fa53..3939252 100755
--- a/monitoring/SputLite/html/cgi-bin/upload_results.cgi
+++ b/monitoring/SputLite/html/cgi-bin/upload_results.cgi
@@ -113,6 +113,7 @@ sub ProcessInput {
# Truncate to fit into a varchar2(4000)
$value = substr($value, 0, 3996) . '...' if (length($value) > 4000);
+ $value = under if $value eq '';
push(@values, "$field = ?");
push(@bindvars, $value);
commit a878a171f68d2a0499f1bca1dd436065ce0337bd
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Tue Nov 29 08:22:36 2011 +0100
Revert "postgres seems to reject empty text for stdout and stderr column"
This reverts commit cb03309b01f3716967de6f1981502c7b56b99ff7.
It is quite correct that PostgreSQL rejects empty strings -- it is
because Oracle quietly converts them to nulls. The purpose of
the vn_* constraints is to force the applications to be changed
properly, which means inserting nulls in the first place.
diff --git a/monitoring/SputLite/html/cgi-bin/upload_results.cgi
b/monitoring/SputLite/html/cgi-bin/upload_results.cgi
index cf5794a..913fa53 100755
--- a/monitoring/SputLite/html/cgi-bin/upload_results.cgi
+++ b/monitoring/SputLite/html/cgi-bin/upload_results.cgi
@@ -113,7 +113,6 @@ sub ProcessInput {
# Truncate to fit into a varchar2(4000)
$value = substr($value, 0, 3996) . '...' if (length($value) > 4000);
- $value = ' ' if (length($value) == 0);
push(@values, "$field = ?");
push(@bindvars, $value);