Bug 456891

Summary: pushing package headers and re-pushing whole package causes internal server error
Product: Red Hat Satellite 5 Reporter: Daniel Mach <dmach>
Component: ServerAssignee: Jan Pazdziora (Red Hat) <jpazdziora>
Status: CLOSED WONTFIX QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: high Docs Contact:
Priority: medium    
Version: 510CC: cperry, dgregor, jhutar
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-09 10:20:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 462714, 563609    

Description Daniel Mach 2008-07-28 14:10:57 UTC
Description of problem:
When I push a package headers to satellite and then I want to re-push whole
file, I get 500: Internal Server Error.

How reproducible:
always

Steps to Reproduce:
1. rhnpush --server=xen34.englab.brq.redhat.com --username=admin
--password=admin --orgid=1 --channel=rhel-x86_64-as-4  --header
anacron-2.3-32.i386.rpm
2. rhnpush --server=xen34.englab.brq.redhat.com --username=admin
--password=admin --orgid=1 --channel=rhel-x86_64-as-4 anacron-2.3-32.i386.rpm
  
Actual results:
ERROR: unhandled exception occurred: (<ProtocolError for
xen34.englab.brq.redhat.com /APP: 500 Internal Server Error>).

Expected results:
Whole file is uploaded or relevant error message is printed.

Additional info:
Traceback (most recent call last):
  File "/usr/share/rhn/server/apacheRequest.py", line 108, in call_function
    response = apply(func, params)
  File "/usr/share/rhn/server/handlers/app/packages.py", line 415, in
getPackageMD5sumBySession
    return self._getPackageMD5sum(org_id, pkg_infos, info)
  File "/usr/share/rhn/server/handlers/app/packages.py", line 463, in
_getPackageMD5sum
    filePath = os.path.join(CFG.MOUNT_POINT, row['path'])
  File "/usr/lib64/python2.3/posixpath.py", line 60, in join
    if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'

row['path'] should contain file path, but uploaded file doesn't exist on
satellite (there's only header in database), so variable contains None value.

Comment 1 Devan Goodwin 2008-07-28 14:41:20 UTC
Switching component, I'm thinking "Server" is the most appropriate here.

Comment 2 Daniel Mach 2009-10-07 19:43:33 UTC
Any update on this?
The issue is still there.

Comment 6 Clifford Perry 2014-05-09 10:20:44 UTC
We have not addressed this specific bug for over 4 years. This bug was reported as either Satellite 5.0 or 5.1, both of which have now End of Life and not supported. I am closing out as wontfix to clear from backlog. 

Please re-open if you disagree and wish further review.

Cliff