Modify

Opened 14 years ago

Closed 13 years ago

#7472 closed defect (fixed)

Error in customfieldAdmin module.

Reported by: mcpbalaji@… Owned by: osimons
Priority: highest Component: CustomFieldAdminPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.11

Description (last modified by osimons)

Hi,

We are getting serious error. please guide me to resolve te below issue. After i have installed the TracCustomfield admin module i am getting the below error message because if this message we are not able to view the admin panel using admin user name.

#trac-admin /srv/webtracker/xeragotrac/citi permission add admin2 TRAC_ADMIN
Traceback (most recent call last):
  File "/usr/bin/trac-admin", line 7, in ?
    sys.exit(
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 318, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 2221, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.4/site-packages/Trac-0.11-py2.4.egg/trac/admin/__init__.py", line 14, in ?
    from trac.admin.api import *
  File "/usr/lib/python2.4/site-packages/Trac-0.11-py2.4.egg/trac/admin/api.py", line 36, in ?
    mycfcomp.update_custom_field(myenv, mycfdict, create=True)
  File "/usr/lib/python2.4/site-packages/TracCustomFieldAdmin-0.2.3-py2.4.egg/customfieldadmin/api.py", line 103, in update_custom_field
    self.create_custom_field(env, customfield)
  File "/usr/lib/python2.4/site-packages/TracCustomFieldAdmin-0.2.3-py2.4.egg/customfieldadmin/api.py", line 80, in create_custom_field
    env.config.set('ticket-custom', customfield['name'] + '.options', '|'.join(customfield['options']))
TypeError: sequence expected, NoneType found

BalajiV

Attachments (0)

Change History (2)

comment:1 Changed 14 years ago by osimons

Description: modified (diff)

Sorry, but I'm not able to recreate this error. An error that seems very strange, as the trac-admin ... permission add should not be calling create_custom_field() in a plugin. The Trac version seems old, and perhaps it is patched or otherwise changed? I would never expect the Trac code to call code in the plugin - which seems to be what is going on in the middle of your traceback:

File "/usr/lib/python2.4/site-packages/Trac-0.11-py2.4.egg/trac/admin/api.py", line 36, in ?
    mycfcomp.update_custom_field(myenv, mycfdict, create=True)

Perhaps you can look at that particular file, and compare its content with with the released version: trac:browser:tags

comment:2 Changed 13 years ago by anonymous

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain osimons.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.