Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 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

Description

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/main.py", line 450, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 217, in dispatch
    self._post_process_request(req, *resp)
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 309, in _post_process_request
    resp = f.post_process_request(req, *resp)
  File "build/bdist.linux-x86_64/egg/blackmagic/blackmagic.py", 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 15 years ago by obs

Priority: normalhigh
Severity: normalcritical
Status: newassigned

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

comment:2 Changed 15 years ago by obs

Resolution: fixed
Status: assignedclosed

(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 15 years ago by igloo@…

Looks good; thanks for the fast response!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain obs.
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.