I don't think it's an empty resource problem - the full trace shows a
healthy resource id. The error happens when viewing an individual
ticket too. A fuller picture of the error is as follows (this time for
trying to view an individual ticket at url projectroot/ticket/10 (I
know it exists in the sqlite db ticket table because ive used the
command line to verify its presence) :

Oops...
Trac detected an internal error:
TypeError: iteration over non-sequence
If you think this should work you can reproduce the problem, you
should consider reporting this to the Trac team.

Before you do that, though, please first try searching for similar
issues, as it is quite likely that this problem has been reported
before. For questions about installation and configuration of Trac,
please try the mailing list instead of filing a ticket.

Otherwise, please   a new ticket at the Trac project site, where you
can describe the problem and explain how to reproduce it.

Python Traceback

Most recent call last:
File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/web/
main.py", line 398, in _dispatch_request
File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/web/
main.py", line 195, in dispatch
File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/
ticket/web_ui.py", line 159, in process_request
File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/
ticket/web_ui.py", line 412, in _process_ticket_request
Code fragment:
            try:
                version = int(version)
            except ValueError:
                version = None

        req.perm('ticket', id, version).require('TICKET_VIEW')
        ticket = Ticket(self.env, id, version=version)
        action = req.args.get('action', ('history' in req.args and
'history' or
                                         'view'))

        data = {'ticket': ticket, 'comment': None}
Local variables:
Name    Value
id      10
req     <Request "GET u'/ticket/10'">
self    <trac.ticket.web_ui.TicketModule object at 0x8d2758c>
version None
File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/
perm.py", line 538, in require
Code fragment:
            return decision
    __contains__ = has_permission

    def require(self, action, realm_or_resource=None, id=False,
version=False):
        resource = self._normalize_resource(realm_or_resource, id,
version)
        if not self._has_permission(action, resource):
            raise PermissionError(action, resource, self.env)
    assert_permission = require

    def permissions(self):
        """Deprecated (but still used by the HDF compatibility
layer)"""
Local variables:
Name    Value
action  'TICKET_VIEW'
id      False
realm_or_resource       None
resource        <Resource u'ticket:10'>
self    <trac.perm.PermissionCache object at 0x90c138c>
version False
File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/
perm.py", line 530, in _has_permission
File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/
perm.py", line 424, in check_permission
File "/home/entrip/trac/entrip/plugins/vulnerability_tickets.py", line
45, in check_permission


System Information:

User Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-gb)
AppleWebKit/523.10.6 (KHTML, like Gecko) Version/3.0.4 Safari/523.10.6

Trac:   0.11b1
Python: 2.4.3 (#1, Mar 14 2007, 18:51:08) [GCC 4.1.1 20070105 (Red Hat
4.1.1-52)]
setuptools:     0.6c7
SQLite: 3.3.6
pysqlite:       1.1.7
Genshi: 0.4.4
Pygments:       0.9
Subversion:     1.4.2 (r22196)
jQuery: 1.2.1

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to