Bug 880430 - TypeError: object of type 'NoneType' has no len()
Summary: TypeError: object of type 'NoneType' has no len()
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vratislav Podzimek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:cc004dbb9ac6584a99af19c121f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-27 00:30 UTC by Neil
Modified: 2013-05-10 03:32 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-05-10 03:32:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (155.27 KB, text/plain)
2012-11-27 00:30 UTC, Neil
no flags Details
File: product (6 bytes, text/plain)
2012-11-27 00:30 UTC, Neil
no flags Details
File: type (9 bytes, text/plain)
2012-11-27 00:30 UTC, Neil
no flags Details
File: ifcfg.log (641 bytes, text/plain)
2012-11-27 00:30 UTC, Neil
no flags Details
File: storage.log (38.22 KB, text/plain)
2012-11-27 00:30 UTC, Neil
no flags Details
File: version (7 bytes, text/plain)
2012-11-27 00:30 UTC, Neil
no flags Details
File: environ (783 bytes, text/plain)
2012-11-27 00:30 UTC, Neil
no flags Details
File: executable (14 bytes, text/plain)
2012-11-27 00:30 UTC, Neil
no flags Details
File: anaconda.log (7.09 KB, text/plain)
2012-11-27 00:30 UTC, Neil
no flags Details
File: syslog (60.35 KB, text/plain)
2012-11-27 00:30 UTC, Neil
no flags Details
File: hashmarkername (8 bytes, text/plain)
2012-11-27 00:30 UTC, Neil
no flags Details
File: packaging.log (2.96 KB, text/plain)
2012-11-27 00:30 UTC, Neil
no flags Details
File: cmdline_file (92 bytes, text/plain)
2012-11-27 00:30 UTC, Neil
no flags Details
File: release (24 bytes, text/plain)
2012-11-27 00:30 UTC, Neil
no flags Details
File: program.log (19.87 KB, text/plain)
2012-11-27 00:30 UTC, Neil
no flags Details

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.


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