Bug 135657

Summary: [PATCH] uninitialised variables in registration gui
Product: [Fedora] Fedora Reporter: Alan Milligan <alan.milligan>
Component: up2dateAssignee: Adrian Likins <alikins>
Status: CLOSED RAWHIDE QA Contact: Fanny Augustin <fmoquete>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: wtogami
Target Milestone: ---Keywords: EasyFix
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-04-07 17:17:17 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: 136451    
Attachments:
Description Flags
patch none

Description Alan Milligan 2004-10-14 06:17:09 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040510

Description of problem:
Traceback (most recent call last):
  File "/usr/share/rhn/up2date_client/gui.py", line 497, in
onNewAccountPageNext
    ret = self.newAccountPageApply()
  File "/usr/share/rhn/up2date_client/rhnregGui.py", line 709, in
newAccountPageApply
    password)
  File "/usr/share/rhn/up2date_client/rhnreg.py", line 243, in reserveUser
    ret = rpcServer.doCall(s.registration.reserve_user, username,
password)
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 310, in doCall
    ret = apply(method, args, kwargs)
  File "/usr/lib/python2.3/xmlrpclib.py", line 1031, in __call__
    return self.__send(self.__name, args)
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 51, in _request1
    ret = self._request(methodname, params)
  File "/usr/lib/python2.3/site-packages/rhn/rpclib.py", line 308, in
_request
    verbose=self._verbose
  File "/usr/lib/python2.3/site-packages/rhn/transports.py", line 155,
in request
    for header, value in self._headers.items() + extra_headers:
TypeError: can only concatenate list (not "NoneType") to list
Error reading networking information: exceptions.UnboundLocalError
Traceback (most recent call last):
  File "/usr/share/rhn/up2date_client/gui.py", line 666, in
onActivatePagePrepare
    activateVbox = self.activatePagePrepare()
  File "/usr/share/rhn/up2date_client/rhnregGui.py", line 336, in
activatePagePrepare
    if hostname:
UnboundLocalError: local variable 'hostname' referenced before assignment


Version-Release number of selected component (if applicable):
up2date-4.3.40-1

How reproducible:
Always

Steps to Reproduce:
1. up2date --register
2. do new account setup
3. crashes upon submittion
    

Additional info:

Comment 1 Alan Milligan 2004-10-14 06:19:57 UTC
Created attachment 105183 [details]
patch

It's a trivial fix ...

Comment 2 Alan Milligan 2004-12-11 18:15:41 UTC
Hi, we'd really like to see this patch in FC4 please!

Comment 3 Warren Togami 2005-03-29 08:46:03 UTC
ping alikins


Comment 4 Adrian Likins 2005-04-07 17:17:17 UTC
this was fixed in 4.4.9