Ticket #936 (closed defect: fixed)

Opened 5 years ago

Last modified 2 years ago

Error when no tabs are configured

Reported by: anonymous Assigned to: rjollos
Priority: normal Component: TracTabPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description (Last modified by coderanger)

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

Change History

(follow-up: ↓ 2 ) 11/25/06 05:25:48 changed by coderanger

  • description changed.

Fix formatting.

(in reply to: ↑ 1 ; follow-up: ↓ 3 ) 11/19/07 20:43:55 changed by alex@frei-welt.de

Hi,

Replying to coderanger:

Fix formatting.

What do you mean by this?

(in reply to: ↑ 2 ) 11/20/07 03:47:11 changed by coderanger

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.

09/16/09 15:31:27 changed by bobbysmith007

  • owner changed from bobbysmith007 to rjollos.

This plugin will be adopted soon, changing ownership to new owner

10/28/09 04:46:26 changed by rjollos

  • summary changed from without any tabs inserted it doesnt work when logged in to Error when no tabs are configured.

01/13/10 22:19:54 changed by rjollos

  • severity changed from critical to normal.

01/25/10 03:36:52 changed by rjollos

  • status changed from new to closed.
  • resolution set to fixed.

(In [7465]) Create no tabs if none are defined. Fixes #936

01/25/10 03:38:58 changed by rjollos

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.


Add/Change #936 (Error when no tabs are configured)




Change Properties
Action