Red Hat Bugzilla – Bug 1256918
rhn-push fails when rpm has a package group specified as None (PATCH)
Last modified: 2015-10-08 09:27:05 EDT
+++ This bug was initially created as a clone of Bug #1218762 +++
Description of problem:
rhn push fails to upload a rpm when the package group is None. the following stack trace occurs and 500 is thrown:
Exception Handler Information
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheUploadServer.py", line 100, in _wrapper
ret = function(req)
File "/usr/share/rhn/upload_server/handlers/package_push/package_push.py", line 124, in handler
File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnPackageUpload.py", line 129, in push_package
File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/mpmSource.py", line 225, in create_package
File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/headerSource.py", line 451, in createPackage
File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/headerSource.py", line 152, in populate
self['package_group'] = self['package_group'].rstrip()
AttributeError: 'NoneType' object has no attribute 'rstrip'
will be adding a patch to the bz.
--- Additional comment from Shannon Hughes on 2015-05-05 15:36:08 EDT ---
patch to handle package groups that are not set in the rpm meta data. I believe this might have to do with the rpm build version. When I build a rpm with no Group then it shows up as Unspecified so modified to the import lib code to handle in the same way.
Spacewalk 2.4 has been released.