Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#6409 closed defect (fixed)

When using with custom query: AttributeError: 'str' object has no attribute 'get'

Reported by: igloo@… Owned by: obs
Priority: high Component: BlackMagicTicketTweaksPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.11


With trac 0.11.6, if I enable the Black Magic plugin, and also enable the custom query built-in plugin, then "View Tickets"/"Custom Query" gives me an error:

How to Reproduce

While doing a GET operation on /query, Trac issued an internal error.

System Information

Trac 0.11.6
Python 2.5.2 (r252:60911, Jan 4 2009, 22:17:10)
[GCC 4.3.2]
setuptools 0.6c8
SQLite 3.5.9
pysqlite 2.3.2
Genshi 0.5.1
mod_python 3.3.1
Pygments 0.10
CustomFieldAdmin 0.2.2

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/web/", line 450, in _dispatch_request
  File "/usr/lib/python2.5/site-packages/trac/web/", line 217, in dispatch
    self._post_process_request(req, *resp)
  File "/usr/lib/python2.5/site-packages/trac/web/", line 309, in _post_process_request
    resp = f.post_process_request(req, *resp)
  File "build/bdist.linux-x86_64/egg/blackmagic/", line 93, in post_process_request
    if  type.get("name") == "type":
AttributeError: 'str' object has no attribute 'get'

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by obs

  • Priority changed from normal to high
  • Severity changed from normal to critical
  • Status changed from new to assigned

Thanks, I'll check into this asap, probably in a few hours.

comment:2 Changed 5 years ago by obs

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

(In [7369]) Cleaned up code so it only runs functions on specific templates, fixes #6409 , ticket types a user doesn't have access to will now be removed from the custom reports screen.

comment:3 Changed 5 years ago by igloo@…

Looks good; thanks for the fast response!

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from obs. Next status will be 'closed'.
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.