Modify

Opened 17 years ago

Closed 11 years ago

#932 closed defect (wontfix)

Error on copy/move ticket

Reported by: anonymous Owned by: Noah Kantrowitz
Priority: normal Component: DatamoverPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description (last modified by Alec Thomas)

Hi,

I have just installed this plugin and get the following errors:

Move ticket Error:

Traceback (most recent call last):
  File "/usr/local/python24/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/python24/lib/python2.4/site-packages/trac/web/main.py", line 238, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/python24/lib/python2.4/site-packages/TracWebAdmin-0.1.2dev_r4240-py2.4.egg/webadmin/web_ui.py", line 109, in process_request
    path_info)
  File "build/bdist.linux-x86_64/egg/datamover/ticket.py", line 69, in process_admin_request
  File "build/bdist.linux-x86_64/egg/datamover/util.py", line 38, in copy_ticket
  File "/usr/local/python24/lib/python2.4/site-packages/trac/db/util.py", line 50, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/usr/local/python24/lib/python2.4/site-packages/sqlite/main.py", line 255, in execute
    self.rs = self.con.db.execute(SQL % parms)
OperationalError: database is locked

Copy Ticket Error:

Traceback (most recent call last):
  File "/usr/local/python24/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/python24/lib/python2.4/site-packages/trac/web/main.py", line 238, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/python24/lib/python2.4/site-packages/TracWebAdmin-0.1.2dev_r4240-py2.4.egg/webadmin/web_ui.py", line 109, in process_request
    path_info)
  File "build/bdist.linux-x86_64/egg/datamover/ticket.py", line 69, in process_admin_request
  File "build/bdist.linux-x86_64/egg/datamover/util.py", line 55, in copy_ticket
  File "/usr/local/python24/lib/python2.4/site-packages/trac/db/util.py", line 50, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/usr/local/python24/lib/python2.4/site-packages/sqlite/main.py", line 255, in execute
    self.rs = self.con.db.execute(SQL % parms)
DatabaseError: table ticket_custom has no column named author

I would be grateful if you had any suggestions how to fix this issue.

Cheers

John

Attachments (0)

Change History (4)

comment:1 Changed 17 years ago by Alec Thomas

Description: modified (diff)

comment:2 Changed 17 years ago by anonymous

I found the problem. In util.py the method copy_ticket is defined. First there is a loop that copies ticket_changes data. After that there is a loop copying ticket_custom data, but this loop reuses the variable name ticket_change_data part of the time, thus losing the actual data and thinking that there is an 'author' column in ticket_custom.

comment:3 Changed 17 years ago by anonymous

see ticket #907

comment:4 Changed 11 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

This plugin is deprecated. Please use the TracMigratePlugin.

Modify Ticket

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