Bug 1390241 - ISE 500 during pushing solaris packages
Summary: ISE 500 during pushing solaris packages
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 580
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gennadii Altukhov
QA Contact: Jan Hutař
URL:
Whiteboard:
Depends On:
Blocks: sat580-low
TreeView+ depends on / blocked
 
Reported: 2016-10-31 14:44 UTC by Pavel Studeník
Modified: 2017-06-21 12:13 UTC (History)
4 users (show)

Fixed In Version: spacewalk-backend-2.5.3-66-sat
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-21 12:13:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Solaris package for testing (24.00 KB, application/octet-stream)
2016-11-01 13:42 UTC, Pavel Studeník
no flags Details

Description Pavel Studeník 2016-10-31 14:44:20 UTC
Description of problem:
I tried push a solaris packages to Satellite 5.8. This version of product doesn't support solaris architecture (include pushing of package). I think that some message should be shown instead of errors.


Version-Release number of selected component (if applicable):
spacewalk-backend-server-2.5.3-23.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. rhnpush -c test-channel-x86_64-4 *.mpm

Actual results:
Internal Server Error

Expected results:
Without ISE and show some corresponding message

Additional info:
>> tail /var/log/httpd/error_log

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheUploadServer.py", line 103, in _wrapper
    ret = function(req)
  File "/usr/share/rhn/upload_server/handlers/package_push/package_push.py", line 125, in handler
    relative_path=self.rel_package_path, org_id=self.org_id)
  File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnPackageUpload.py", line 158, in push_package
    importer.run()
  File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/importLib.py", line 668, in run
    self.submit()
  File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/packageImport.py", line 313, in submit
    transactional=self.transactional)
  File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/backend.py", line 756, in processPackages
    transactional=transactional)
  File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/backend.py", line 1616, in __processObjectCollection__
    _buildExternalValue(extObject, object, parentTableObj)
  File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/backend.py", line 2113, in _buildExternalValue
    dict[f] = sanitizeValue(entry[attr], datatype)
  File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/backendLib.py", line 518, in sanitizeValue
    return int(value)
TypeError: int() argument must be a string or a number, not 'list'

Comment 1 Tomas Lestach 2016-10-31 15:35:56 UTC
What is the rhnpush output?

Comment 2 Pavel Studeník 2016-10-31 15:38:40 UTC
>> rhnpush -u admin -p nimda --server=https://localhost/APP -c test-channel-x86_64-4 -d sparc
('Internal server error', 500, 'Internal Server Error')
Error pushing (...)/sparc/CSWcommon-1.5-2010.07.29_PSTAMP_2010.07.30.02.13.sparc-solaris.mpm:  (500)
Waiting 5 seconds and trying again...

Comment 3 Pavel Studeník 2016-11-01 13:42:31 UTC
Created attachment 1216119 [details]
Solaris package for testing

Comment 5 Gennadii Altukhov 2017-02-20 14:28:03 UTC
bug is fixed in upstream. spacewalk.git:
ea1adc3d9076ca4b2310b032608973a56ec516cd


Note You need to log in before you can comment on or make changes to this bug.