Hi,

in ISS export the field length in erratum-advisory-name is too short.
The DB can store 100, while the code expect only 32. This will strip errata 
names to 32 chars and produce possible dupplicate key errors while it could 
store 100 chars without a problem.

-- 
Regards

        Michael Calmer

--------------------------------------------------------------------------
Michael Calmer
SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg
T: +49 (0) 911 74053 0
F: +49 (0) 911 74053575  - e-mail: michael.cal...@suse.com
--------------------------------------------------------------------------
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer
HRB 16746 (AG Nürnberg)
>From f4076ff1499a4bc955728be518ae473d80fff327 Mon Sep 17 00:00:00 2001
From: Michael Calmer <m...@suse.de>
Date: Thu, 12 Sep 2013 17:04:19 +0200
Subject: [PATCH] Fix field length of erratum-advisory-name to match real DB
 field length

---
 backend/satellite_tools/exporter/exportLib.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/satellite_tools/exporter/exportLib.py b/backend/satellite_tools/exporter/exportLib.py
index 6386625..5e14af2 100644
--- a/backend/satellite_tools/exporter/exportLib.py
+++ b/backend/satellite_tools/exporter/exportLib.py
@@ -1036,7 +1036,7 @@ class _ErratumDumper(BaseRowDumper):
         arr = []
 
         mappings = [
-            ('rhn-erratum-advisory-name', 'advisory_name', 32),
+            ('rhn-erratum-advisory-name', 'advisory_name', 100),
             ('rhn-erratum-advisory-rel', 'advisory_rel', 32),
             ('rhn-erratum-advisory-type', 'advisory_type', 32),
             ('rhn-erratum-product', 'product', 64),
-- 
1.8.1.4

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to