Edgewall Software
Modify

Opened 10 years ago

Closed 10 years ago

#11779 closed defect (cantfix)

AttributeError: 'Environment' object has no attribute 'db_transaction'

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

Description

How to Reproduce

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

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'86b3c1e03542852706be1c04',
 'action': u'resolve',
 'action_resolve_resolve_resolution': u'fixed',
 'cnum': u'1',
 'comment': u'',
 'field_billable': u'1',
 'field_blockedby': u'',
 'field_blocking': u'',
 'field_cc': u'',
 'field_checkbox_billable': u'1',
 'field_component': u'ZzZ',
 'field_description': u'test',
 'field_estimatedhours': u'5',
 'field_hours': u'0',
 'field_keywords': u'',
 'field_milestone': u'',
 'field_priority': u'minor',
 'field_reporter': u'denis',
 'field_summary': u'tets ZZZ',
 'field_totalhours': u'0',
 'field_type': u'defect',
 'field_version': u'',
 'id': u'2270',
 'replyto': u'',
 'submit': u'Submit changes',
 'ts': u'2014-10-10 12:27:16.850111+00:00'}

User agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36

System Information

Trac 0.12.3
Babel 1.3 (translations unavailable)
Genshi 0.6.1
pysqlite 2.6.3
Python 2.7.6 (default, May 4 2014, 00:57:49)
[GCC 4.9.0]
pytz 2014.7
RPC 1.1.2-r13776
setuptools 6.0.2
SQLite 3.8.3
jQuery 1.4.4

Enabled Plugins

Trac-jsGantt 0.11-r14075
TracMasterTickets 3.0.5dev-r13684
TracXMLRPC 1.1.2-r13776
worklog 0.3dev-r13986

Python Traceback

Traceback (most recent call last):
  File "build/bdist.solaris-2.10-sun4v.32bit/egg/trac/web/main.py", line 522, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.solaris-2.10-sun4v.32bit/egg/trac/web/main.py", line 243, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.solaris-2.10-sun4v.32bit/egg/trac/ticket/web_ui.py", line 169, in process_request
    return self._process_ticket_request(req)
  File "build/bdist.solaris-2.10-sun4v.32bit/egg/trac/ticket/web_ui.py", line 541, in _process_ticket_request
    self._do_save(req, ticket, action)
  File "build/bdist.solaris-2.10-sun4v.32bit/egg/trac/ticket/web_ui.py", line 1238, in _do_save
    cnum=internal_cnum):
  File "build/bdist.solaris-2.10-sun4v.32bit/egg/trac/ticket/model.py", line 359, in save_changes
    listener.ticket_changed(self, comment, author, old_values)
  File "/opt/csw/lib/python2.7/site-packages/Trac_jsGantt-0.11_r14075-py2.7.egg/tracjsgantt/tracpm.py", line 3058, in ticket_changed
    self.rescheduleTickets(ticket, old_values)
  File "/opt/csw/lib/python2.7/site-packages/Trac_jsGantt-0.11_r14075-py2.7.egg/tracjsgantt/tracpm.py", line 3038, in rescheduleTickets
    self._updateScheduleDB(idle, tickets, profile)
  File "/opt/csw/lib/python2.7/site-packages/Trac_jsGantt-0.11_r14075-py2.7.egg/tracjsgantt/tracpm.py", line 2753, in _updateScheduleDB
    with self.env.db_transaction as db:
AttributeError: 'Environment' object has no attribute 'db_transaction'

Attachments (0)

Change History (1)

comment:1 by Jun Omae, 10 years ago

Priority: highestnormal
Resolution: cantfix
Status: newclosed

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.