Status subsystem crashes when there are custom status page preferences
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Network Administration Visualized |
Fix Released
|
Medium
|
Morten Brekkevold | ||
3.4 |
Fix Released
|
Medium
|
Morten Brekkevold | ||
3.5 |
Fix Released
|
Medium
|
Morten Brekkevold |
Bug Description
Erlend B. Midttun reports that the Status page crashes in NAV 3.4. He provides the following traceback:
MOD_PYTHON ERROR
ProcessId: 24665
Interpreter: 'nav.example.com'
ServerName: 'nav.example.com'
DocumentRoot: '/var/www/nav'
URI: '/status/'
Location: None
Directory: '/var/www/
Filename: '/var/www/
PathInfo: ''
Phase: 'PythonHandler'
Handler: 'status'
Traceback (most recent call last):
File "/usr/lib/
default=
File "/usr/lib/
result = _execute_
File "/usr/lib/
result = object(arg)
File "/var/www/
output = indexInternal(req)
File "/var/www/
prefs = HandleStatusPre
File "/var/www/
prefs = cPickle.loads(data)
File "/usr/lib/
return _global_
File "/usr/lib/
assert(file != parent_info.file), "Import cycle in %s." % file
AssertionError: Import cycle in /var/www/
MODULE CACHE DETAILS
Accessed: Mon Sep 1 15:37:38 2008
Generation: 4
_mp_2c0249d9bac
FileName: '/var/www/
Instance: 1
Generation: 2
Modified: Wed Aug 27 15:49:22 2008
Imported: Mon Sep 1 14:40:07 2008
Children: '/var/www/
}
_mp_7969d392bfd
FileName: '/var/www/
Instance: 1
Generation: 1
Modified: Wed Aug 27 15:49:22 2008
Imported: Mon Sep 1 14:40:07 2008
}
_mp_3f1e7ad3a80
FileName: '/var/www/
Instance: 1
Generation: 3
Modified: Wed Aug 27 15:49:22 2008
Imported: Mon Sep 1 14:40:07 2008
Children: '/var/www/
}
Changed in nav: | |
status: | Fix Committed → Fix Released |
This is related to https:/ /bugs.launchpad .net/nav/ +bug/258260 , and is a result of the issue described at http:// www.dscpl. com.au/ wiki/ModPython/ Articles/ IssuesWithSessi onObjects .
NAV still saves individual users' status preferences as pickled objects in the database. The bug in LP#258260 affected all users because of unpickling the set of default preferences, while this bug affects those who have saved custom status page preferences.