Edgewall Software
Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#11001 closed defect (cantfix)

AttributeError: 'FieldsWrapper' object has no attribute 'by_name'

Reported by: faner.yedermann@… Owned by:
Priority: normal Milestone:
Component: web frontend Version: 1.1.1dev
Severity: normal Keywords:
Cc: support@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

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

I'm not sure if this is an intended change that agilo needs to be updated to handle, or if the by_name (which is new) attribute needs error handling or…? Tell me if I should report this to agilo instead, not sure what is intended by glancing through the code.

Request parameters:

{'type': u'Bug'}

User agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11

System Information

Trac 1.1.1dev-r11483
Agilo 1.3.9-PRO
Babel 0.9.6
Docutils 0.8.1
Genshi 0.6 (with speedups)
GIT 1.7.9.5
mod_wsgi 3.3 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})
MySQL server: "5.5.28-0ubuntu0.12.04.3", client: "5.5.28", thread-safe: 1
MySQLdb 1.2.3
Pygments 1.4
Python 2.7.3 (default, Aug 1 2012, 05:25:23)
[GCC 4.6.3]
pytz 2011k
setuptools 0.6
jQuery 1.8.2

Enabled Plugins

binary-agilo 1.3.9-PRO
TracAccountManager 0.5dev-r12491

Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.1.1dev_r11483-py2.7.egg/trac/web/main.py", line 497, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.1.1dev_r11483-py2.7.egg/trac/web/main.py", line 214, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.1.1dev_r11483-py2.7.egg/trac/ticket/web_ui.py", line 186, in process_request
    return self._process_newticket_request(req)
  File "/usr/local/lib/python2.7/dist-packages/binary_agilo-1.3.9_PRO-py2.7.egg/agilo/ticket/web_ui.py", line 459, in _process_newticket_request
    super(AgiloTicketModule, self)._process_newticket_request(req)
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.1.1dev_r11483-py2.7.egg/trac/ticket/web_ui.py", line 467, in _process_newticket_request
    self._populate(req, ticket, plain_fields)
  File "/usr/local/lib/python2.7/dist-packages/binary_agilo-1.3.9_PRO-py2.7.egg/agilo/ticket/web_ui.py", line 481, in _populate
    ticket.populate(fields)
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.1.1dev_r11483-py2.7.egg/trac/ticket/model.py", line 214, in populate
    self[name] = values[name]
  File "/usr/local/lib/python2.7/dist-packages/binary_agilo-1.3.9_PRO-py2.7.egg/agilo/ticket/model.py", line 827, in __setitem__
    super(AgiloTicket, self).__setitem__(attr, value)
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.1.1dev_r11483-py2.7.egg/trac/ticket/model.py", line 193, in __setitem__
    if self.fields.by_name(name, {}).get('type') != 'textarea':
AttributeError: 'FieldsWrapper' object has no attribute 'by_name'

Attachments (0)

Change History (2)

comment:1 by Remy Blank, 10 years ago

Cc: support@… added
Resolution: cantfix
Status: newclosed

comment:2 by stefano.rago@…, 10 years ago

@rblank: thanks for the cc @reporter: please write to support@…

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.