#6290 closed defect (invalid)
TypeError: argument of type 'NoneType' is not iterable
| Reported by: | Paul Moors | Owned by: | Ryan J Ollos |
|---|---|---|---|
| Priority: | highest | Component: | TracHoursPlugin |
| Severity: | blocker | Keywords: | |
| Cc: | Trac Release: | 0.11 |
Description
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:1.9.1.5) 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/main.py", line 450, in _dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.5/site-packages/Trac-0.11.6-py2.5.egg/trac/web/main.py", 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/web_ui.py", 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/web_ui.py", 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/web_ui.py", 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/ticket.py", 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/perm.py", line 428, in check_permission
perm)
File "build/bdist.linux-i686/egg/privatetickets/policy.py", 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 16 years ago by
comment:2 Changed 15 years ago by
| Owner: | changed from Jeff Hammel to Ryan J Ollos |
|---|---|
| Status: | new → 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 15 years ago by
| Resolution: | → invalid |
|---|---|
| Status: | assigned → closed |
comment:4 Changed 15 years ago by
May be a duplicate of #5826, and if so we can pursue further in that ticket.



This is probably actually a bug in PrivateTicketsPlugin. Before the permission check is completed, the
permattribute isNone, leading to the error above.