Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#2822 closed defect (fixed)

Wiki model page uses incorrect table name

Reported by: Andres Salomon <dilinger@…> Owned by: Jonas Borgström
Priority: normal Milestone: 0.10
Component: general Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

Hi,

model.py uses the table name WIKI where it should be using wiki; this results in the following traceback:

 File "/usr/local/lib/python2.4/site-packages/trac/wiki/web_ui.py", line 189, in _do_save
    req.remote_addr)
  File "/usr/local/lib/python2.4/site-packages/trac/wiki/model.py", line 116, in save
    "%s,%s)", (self.name, self.version + 1, t, author,
  File "/usr/local/lib/python2.4/site-packages/trac/db/util.py", line 47, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/usr/local/lib/python2.4/site-packages/trac/db/util.py", line 47, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py", line 137, in execute
    self.errorhandler(self, exc, value)
  File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line 33, in defaulterrorhandler
    raise errorclass, errorvalue
ProgrammingError: (1146, "Table 'test.WIKI' doesn't exist")

(Ignore the mysqldb stuff; this is w/ patches from #986).

Attachments (1)

trac-wikicap-r2944.patch (852 bytes ) - added by Andres Salomon <dilinger@…> 15 years ago.
Fix incorrect table name in sql statement; against r2944.

Download all attachments as: .zip

Change History (2)

by Andres Salomon <dilinger@…>, 15 years ago

Attachment: trac-wikicap-r2944.patch added

Fix incorrect table name in sql statement; against r2944.

comment:1 by Christian Boos, 15 years ago

Description: modified (diff)
Resolution: fixed
Status: newclosed

Patch committed in r2974, thanks again!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström 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.