Modify

Opened 10 years ago

Closed 3 years ago

#932 closed defect (wontfix)

Error on copy/move ticket

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

Description (last modified by athomas)

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 10 years ago by athomas

  • Description modified (diff)

comment:2 Changed 10 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 9 years ago by anonymous

see ticket #907

comment:4 Changed 3 years ago by rjollos

  • Resolution set to wontfix
  • Status changed from new to closed

This plugin is deprecated. Please use the TracMigratePlugin.

Add Comment

Modify Ticket

Action
as closed The owner will remain coderanger.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.