Snapshot

Matt Gunter <[email protected]>
Newsgroups gmane.network.up2date.current.devel
Message-ID <[email protected]>
When remaking the db for my RH 7.2 and 7.3 installations I encountered
and error with the new snapshot.  It only happens if there is a package
to obsolete.  I traced the error down and I believe I have a fix.  The
problem comes from the casting of the oflags to a string in
_addRpmPackage() and the change not getting reflected in
_deleteRpmPackage().

file: /usr/share/current/channel.py line 1007
value = value + [onames[i], overs[i], oflags[i]]

should be:
value = value + [onames[i], overs[i], str(oflags[i])]


I'm still getting the error below when I try to update a RH 8.0 client. 
Hope this information is useful.  I'm trying to get up to speed with
this stuff so I can help out.  I really appreciate the hard work that
has gone into current.  Its saved me a ton of time in the last 6 months.

Matt Gunter
Cypress Tech Group

[Mon Oct  7 02:29:45 2002] [notice] Inside the accesshandler
[Mon Oct  7 02:29:45 2002] [error] PythonAccessHandler current_apache:
Traceback (innermost last):
[Mon Oct  7 02:29:45 2002] [error] PythonAccessHandler current_apache:  
File "/usr/lib/python1.5/site-packages/mod_python/apache.py", line 185,
in Dispatch
    result = object(req)
[Mon Oct  7 02:29:45 2002] [error] PythonAccessHandler current_apache:  
File "/usr/share/current/current_apache.py", line 114, in accesshandler
    hi = auth.SysHeaders(req.headers_in)
[Mon Oct  7 02:29:45 2002] [error] PythonAccessHandler current_apache:  
File "/usr/share/current/auth.py", line 149, in __init__
    self.loadHeaders(headers)
[Mon Oct  7 02:29:45 2002] [error] PythonAccessHandler current_apache:  
File "/usr/share/current/auth.py", line 172, in loadHeaders
    raise Exception("Missing authentication header: %s" % attr)
[Mon Oct  7 02:29:45 2002] [error] PythonAccessHandler current_apache:
Exception: Missing authentication header: X-RHN-Client-Version
[Mon Oct  7 02:29:45 2002] [notice] Inside the loghandler
[Mon Oct  7 02:29:45 2002] [notice]
/XMLRPC/$RHN/redhat-i386-8.0/listPackages/20021007022311
[Mon Oct  7 02:29:45 2002] [notice] text/html; charset=iso-8859-1
[Mon Oct  7 02:29:46 2002] [notice] Inside the accesshandler
[Mon Oct  7 02:29:46 2002] [error] PythonAccessHandler current_apache:
Traceback (innermost last):
[Mon Oct  7 02:29:46 2002] [error] PythonAccessHandler current_apache:  
File "/usr/lib/python1.5/site-packages/mod_python/apache.py", line 185,
in Dispatch
    result = object(req)
[Mon Oct  7 02:29:46 2002] [error] PythonAccessHandler current_apache:  
File "/usr/share/current/current_apache.py", line 114, in accesshandler
    hi = auth.SysHeaders(req.headers_in)
[Mon Oct  7 02:29:46 2002] [error] PythonAccessHandler current_apache:  
File "/usr/share/current/auth.py", line 149, in __init__
    self.loadHeaders(headers)
[Mon Oct  7 02:29:46 2002] [error] PythonAccessHandler current_apache:  
File "/usr/share/current/auth.py", line 172, in loadHeaders
    raise Exception("Missing authentication header: %s" % attr)
[Mon Oct  7 02:29:46 2002] [error] PythonAccessHandler current_apache:
Exception: Missing authentication header: X-RHN-Client-Version
[Mon Oct  7 02:29:46 2002] [notice] Inside the loghandler
[Mon Oct  7 02:29:46 2002] [notice]
/XMLRPC/$RHN/redhat-i386-8.0/listPackages/20021007004621
[Mon Oct  7 02:29:46 2002] [notice] text/html; charset=iso-8859-1




Matt Gunter
Cypress Tech Group
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.