Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#6290 closed defect (invalid)

TypeError: argument of type 'NoneType' is not iterable

Reported by: pmoors Owned by: rjollos
Priority: highest Component: TracHoursPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.11


How to Reproduce

While doing a POST operation on /ticket/1, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'bd207ba32a7d86fa943a7894',
 'action': u'assign_for_analyses',
 'action_assign_for_analyses_reassign_owner': u'pmoors',
 'cnum': u'6',
 'comment': u'took me about 2 hours ',
 'field_blockedby': u'',
 'field_blocking': u'2',
 'field_cc': u'',
 'field_class': u'',
 'field_decisionlevel': u'owner',
 'field_description': u'Update wordprocessor featurelist',
 'field_estimatedhours': u'0',
 'field_keywords': u'',
 'field_milestone': u'',
 'field_priority': u'major',
 'field_reporter': u'pmoors',
 'field_severity': u'Safety/security',
 'field_summary': u'Demo ticket',
 'field_tcf_module': u'',
 'field_tcf_submodule': u'',
 'field_team': u'AMT',
 'field_type': u'defect',
 'field_version': u'',
 'id': u'1',
 'replyto': u'',
 'submit': u'Submit changes',
 'ts': u'2009-12-04 07:53:35+00:00'}

User Agent was: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv: Gecko/20091102 Firefox/3.5.5 GTB6 (.NET CLR 3.5.30729)

System Information

Trac 0.11.6
Python 2.5.2 (r252:60911, Jul 22 2009, 15:52:25)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)]
setuptools 0.6c11
psycopg2 2.0.6
Genshi 0.5.1
mod_python 3.3.1
Subversion 1.4.6 (r28521)
CustomFieldAdmin 0.2.2
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Trac-0.11.6-py2.5.egg/trac/web/", line 450, in _dispatch_request
  File "/usr/lib/python2.5/site-packages/Trac-0.11.6-py2.5.egg/trac/web/", line 206, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.11.6-py2.5.egg/trac/ticket/", line 182, in process_request
    return self._process_ticket_request(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.11.6-py2.5.egg/trac/ticket/", line 504, in _process_ticket_request
    valid = self._validate_ticket(req, ticket) and not problems
  File "/usr/lib/python2.5/site-packages/Trac-0.11.6-py2.5.egg/trac/ticket/", line 977, in _validate_ticket
    for field, message in manipulator.validate_ticket(req, ticket):
  File "/usr/lib/python2.5/site-packages/TracHoursPlugin-0.5.2-py2.5.egg/trachours/", line 45, in validate_ticket
    can_add_hours = PermissionSystem(self.env).check_permission('TICKET_ADD_HOURS', user)
  File "/usr/lib/python2.5/site-packages/Trac-0.11.6-py2.5.egg/trac/", line 428, in check_permission
  File "build/bdist.linux-i686/egg/privatetickets/", line 34, in check_permission
    'TRAC_ADMIN' in perm:
TypeError: argument of type 'NoneType' is not iterable

Attachments (0)

Change History (4)

comment:1 Changed 7 years ago by k0s

This is probably actually a bug in PrivateTicketsPlugin. Before the permission check is completed, the perm attribute is None, leading to the error above.

comment:2 Changed 6 years ago by rjollos

  • Owner changed from k0s to rjollos
  • Status changed from new to assigned

As noted in comment:1, please disable the PrivateTicketsPlugin and see if the issue goes away. If yes, then please disable the TracHoursPlugin and see if you can reproduce the issue with PrivateTicketsPlugin, but without TracHoursPlugin. If yes, then the issue is soley with PrivateTicketsPlugin. If no, we may have some interdependent defect here and we can proceed to diagnose.

Please reopen if you are willing to pursue further.

comment:3 Changed 6 years ago by rjollos

  • Resolution set to invalid
  • Status changed from assigned to closed

comment:4 Changed 6 years ago by rjollos

May be a duplicate of #5826, and if so we can pursue further in that ticket.

Add Comment

Modify Ticket

as closed The owner will remain rjollos.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.