#936 closed defect (fixed)
Error when no tabs are configured
Reported by: | anonymous | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | TracTabPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description (last modified by )
Hi,
when logged in, and no tabs added to the ini (as of a fresh install and activation of the plugin via the webinterface as I did) I get the following backtrace:
Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 209, in dispatch chrome.populate_hdf(req, chosen_handler) File "/usr/lib/python2.4/site-packages/trac/web/chrome.py", line 337, in populate_hdf req.hdf['chrome.nav.%s.%s' % (category, name)] = text File "/usr/lib/python2.4/site-packages/trac/web/clearsilver.py", line 197, in __setitem__ self.set_value(name, value, True) File "/usr/lib/python2.4/site-packages/trac/web/clearsilver.py", line 245, in set_value add_value(name, value) File "/usr/lib/python2.4/site-packages/trac/web/clearsilver.py", line 223, in add_value set_unicode(prefix, unicode(value)) File "/usr/lib/python2.4/site-packages/trac/web/clearsilver.py", line 213, in set_unicode self.hdf.setValue(prefix.encode('utf-8'), value.encode('utf-8')) Error: Traceback (innermost last): File "neo_hdf.c", line 805, in hdf_set_value() File "neo_hdf.c", line 795, in _set_value() AssertError: Unable to set Empty component chrome.nav.mainnav.
However when adding tabs, it works. It would be nice if it does work too without any configured tabs
Attachments (0)
Change History (8)
comment:1 follow-up: 2 Changed 18 years ago by
Description: | modified (diff) |
---|
comment:2 follow-up: 3 Changed 17 years ago by
comment:3 Changed 17 years ago by
Replying to alex@frei-welt.de:
Hi,
Replying to coderanger:
Fix formatting.
What do you mean by this?
It means the author didn't actually format the description to be readable. I corrected it.
comment:4 Changed 15 years ago by
Owner: | changed from Russ Tyndall to Ryan J Ollos |
---|
This plugin will be adopted soon, changing ownership to new owner
comment:5 Changed 15 years ago by
Summary: | without any tabs inserted it doesnt work when logged in → Error when no tabs are configured |
---|
comment:6 Changed 15 years ago by
Severity: | critical → normal |
---|
comment:7 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:8 Changed 15 years ago by
The behavior I saw in Trac 0.11.7stable-r9029
was that if no trac.ini configuration was provided, then a mainnav bar entry with no label would be created. Navigating to this label would result in an error. This is fixed in [7465].
I don't really intend to support 0.10
, so I'm only fixing this on 0.11
.
Fix formatting.