Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#10189 closed defect (cantfix)

AttributeError: 'PatchedTicket' object has no attribute 'is_writeable_field'

Reported by: elliot@… Owned by:
Priority: normal Milestone:
Component: general Version: 0.12.1
Severity: normal Keywords:
Cc: support@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a POST operation on /importer, Trac issued an internal error.

Tried importing the attached excel sheet.

Request parameters:

{'__FORM_TOKEN': u'971a503bb93355eaeeaf6f01', 'action': u'import'}

User agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24

System Information

Trac 0.12.1
Trac 0.12.1
Agilo 0.9.2
Babel 0.9.5
Docutils 0.7
FullBlog 0.1.1-r9430
Genshi 0.6
mod_wsgi 2.5 (WSGIProcessGroup trac_http_wsgi WSGIApplicationGroup %{GLOBAL})
Pygments 1.4dev-20110115
pysqlite 2.4.1
Python 2.5.2 (r252:60911, Jan 24 2010, 18:02:01)
[GCC 4.3.2]
Python 2.5.2 (r252:60911, Jan 24 2010, 18:02:01)
[GCC 4.3.2]
pytz 2008c
pytz 2008c
RPC 1.1.0-r9395
setuptools 0.6c12
setuptools 0.6c12
SQLite 3.7.3
Subversion 1.6.16 (r1073529)
jQuery 1.4.2

Enabled Plugins

agilo 0.9.2
backlinks N/A
backlinks-menu N/A
BatchModify 0.8.0-trac0.12
SecureSession 0.10dev-r1500
TicketImport 0.8
TracAnnouncer 0.12.1.dev
TracDownloads 0.3
TracFullBlogPlugin 0.1.1-r9430
tracrpc.changeset N/A
TracTags 0.6
TracTocMacro 11.0.0.3
TracWysiwyg 0.12.0.3-r9676
TracXMLRPC 1.1.0-r9395
WorkflowEditorPlugin 1.0.4-r10056

Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/Trac-0.12.1-py2.5.egg/trac/web/main.py", line 511, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.12.1-py2.5.egg/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.5/site-packages/TicketImport-0.8-py2.5.egg/talm_importer/importer.py", line 85, in process_request
    encoding=req.session['importer.encoding'])
  File "/usr/local/lib/python2.5/site-packages/TicketImport-0.8-py2.5.egg/talm_importer/importer.py", line 129, in _do_import
    return self._process(filereader, get_reporter_id(req), ImportProcessor(self.env, req, uploadedfilename, tickettime))
  File "/usr/local/lib/python2.5/site-packages/TicketImport-0.8-py2.5.egg/talm_importer/importer.py", line 364, in _process
    processor.end_process_row()
  File "/usr/local/lib/python2.5/site-packages/TicketImport-0.8-py2.5.egg/talm_importer/processors.py", line 118, in end_process_row
    self.ticket.save_changes(get_reporter_id(self.req), message, when=tickettime, db=self.db) # TODO: handle cnum, cnum = ticket.values['cnum'] + 1)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.12.1-py2.5.egg/trac/ticket/model.py", line 360, in save_changes
    listener.ticket_changed(self, comment, author, old_values)
  File "/usr/local/lib/python2.5/site-packages/agilo-0.9.2-py2.5.egg/agilo/scrum/burndown/changelistener.py", line 69, in ticket_changed
    current_sprint_name = self._current_sprint_name(ticket)
  File "/usr/local/lib/python2.5/site-packages/agilo-0.9.2-py2.5.egg/agilo/scrum/burndown/changelistener.py", line 119, in _current_sprint_name
    return self._current_value(Key.SPRINT, ticket) or None
  File "/usr/local/lib/python2.5/site-packages/agilo-0.9.2-py2.5.egg/agilo/scrum/burndown/changelistener.py", line 128, in _current_value
    if not ticket.is_writeable_field(fieldname) or not ticket[fieldname]:
AttributeError: 'PatchedTicket' object has no attribute 'is_writeable_field'

Attachments (1)

import_error.xls (32.5 KB ) - added by elliot@… 14 years ago.
File that was causing errors when trying to import it

Download all attachments as: .zip

Change History (3)

by elliot@…, 14 years ago

Attachment: import_error.xls added

File that was causing errors when trying to import it

comment:1 by Remy Blank, 14 years ago

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

PluginIssue (th:TicketImportPlugin or AgiloForScrum or a combination of both).

comment:2 by robert.buchholz@…, 14 years ago

@rblank, thanks for the CC.

@reporter: This is a collision between the import plugin (or whoever else also monkey-patches the ticket module) and Agilo. Please disable the plugins you do not need (for instance, Agilo also features a CSV import module)

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.