Bug 880430

Summary: TypeError: object of type 'NoneType' has no len()
Product: [Fedora] Fedora Reporter: Neil <neilsbb>
Component: anacondaAssignee: Vratislav Podzimek <vpodzime>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: awilliam, g.kaviyarasu, jonathan, sbueno, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:cc004dbb9ac6584a99af19c121f7de89377672a11a6110f4d6cf89e4d1d03b06
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-10 03:32:33 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:
Attachments:
Description Flags
File: anaconda-tb
none
File: product
none
File: type
none
File: ifcfg.log
none
File: storage.log
none
File: version
none
File: environ
none
File: executable
none
File: anaconda.log
none
File: syslog
none
File: hashmarkername
none
File: packaging.log
none
File: cmdline_file
none
File: release
none
File: program.log none

Description Neil 2012-11-27 00:30:20 UTC
Description of problem:
Right clicked on the first NTP server pool 0 host name

Version-Release number of selected component:
anaconda-18.29.2

Additional info:
libreport version: 2.0.17
cmdline:        /usr/bin/python  /sbin/anaconda
kernel:         3.6.6-3.fc18.x86_64

description:
:The following was filed automatically by anaconda:
:anaconda 18.29.2 exception report
:Traceback (most recent call first):
:  File "/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py", line 1209, in __new__
:    if len(path) == 0:
:  File "/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py", line 798, in get_iter
:    path = TreePath(path)
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/datetime_spoke.py", line 251, in on_server_edited
:    itr = self._serversStore.get_iter(path)
:TypeError: object of type 'NoneType' has no len()

Comment 1 Neil 2012-11-27 00:30:23 UTC
Created attachment 652423 [details]
File: anaconda-tb

Comment 2 Neil 2012-11-27 00:30:25 UTC
Created attachment 652424 [details]
File: product

Comment 3 Neil 2012-11-27 00:30:26 UTC
Created attachment 652425 [details]
File: type

Comment 4 Neil 2012-11-27 00:30:28 UTC
Created attachment 652426 [details]
File: ifcfg.log

Comment 5 Neil 2012-11-27 00:30:29 UTC
Created attachment 652427 [details]
File: storage.log

Comment 6 Neil 2012-11-27 00:30:31 UTC
Created attachment 652428 [details]
File: version

Comment 7 Neil 2012-11-27 00:30:32 UTC
Created attachment 652429 [details]
File: environ

Comment 8 Neil 2012-11-27 00:30:34 UTC
Created attachment 652430 [details]
File: executable

Comment 9 Neil 2012-11-27 00:30:36 UTC
Created attachment 652431 [details]
File: anaconda.log

Comment 10 Neil 2012-11-27 00:30:37 UTC
Created attachment 652432 [details]
File: syslog

Comment 11 Neil 2012-11-27 00:30:38 UTC
Created attachment 652433 [details]
File: hashmarkername

Comment 12 Neil 2012-11-27 00:30:40 UTC
Created attachment 652434 [details]
File: packaging.log

Comment 13 Neil 2012-11-27 00:30:41 UTC
Created attachment 652435 [details]
File: cmdline_file

Comment 14 Neil 2012-11-27 00:30:43 UTC
Created attachment 652436 [details]
File: release

Comment 15 Neil 2012-11-27 00:30:44 UTC
Created attachment 652437 [details]
File: program.log

Comment 16 Vratislav Podzimek 2012-11-28 10:22:39 UTC
(In reply to comment #0)
> Description of problem:
> Right clicked on the first NTP server pool 0 host name
You mean you've just opened the NTP servers configuration dialog and right-clicked on the "0.fedora.pool.ntp.org"? Because I cannot reproduce the traceback like this way.

Comment 17 Vratislav Podzimek 2012-11-28 12:19:54 UTC
Patch for testing path validity was sent to anaconda-patches.

Comment 18 Neil 2012-11-28 21:17:20 UTC
(In reply to comment #16)
> (In reply to comment #0)
> > Description of problem:
> > Right clicked on the first NTP server pool 0 host name
> You mean you've just opened the NTP servers configuration dialog and
> right-clicked on the "0.fedora.pool.ntp.org"? Because I cannot reproduce the
> traceback like this way.

Yes, in the dialog for the list of NTP servers, I clicked on the 0.fedora.pool.ntp.org to edit it. What must have happened is I started editing the host name as blanked and it was then when I hit the right mouse button and the crash occured. It seems the event that occured was a validation attempt on the string in that entry. Since I right clicked when it was empty, it was attempting to validate an empty field.

Comment 19 Vratislav Podzimek 2012-11-29 11:16:44 UTC
(In reply to comment #18)
> (In reply to comment #16)
> > (In reply to comment #0)
> > > Description of problem:
> > > Right clicked on the first NTP server pool 0 host name
> > You mean you've just opened the NTP servers configuration dialog and
> > right-clicked on the "0.fedora.pool.ntp.org"? Because I cannot reproduce the
> > traceback like this way.
> 
> Yes, in the dialog for the list of NTP servers, I clicked on the
> 0.fedora.pool.ntp.org to edit it. What must have happened is I started
> editing the host name as blanked and it was then when I hit the right mouse
> button and the crash occured. It seems the event that occured was a
> validation attempt on the string in that entry. Since I right clicked when
> it was empty, it was attempting to validate an empty field.
Right-click to the text entry shows me a context menu, but if one right-clicks on some other item, it stops editting and that might cause the traceback. However, the proposed (and now also pushed) patch seems to be fixing this issue. The other problem is that even an empty "hostname" is accepted, but that's another story. See bug #865869 for more information about that.

Comment 20 Adam Williamson 2013-05-10 03:32:33 UTC
Going over old  anaconda bugs. I fiddled around in the NTP screen for a while and couldn't produce anything like this, so it looks like the fix worked. Let's close this out.