Edgewall Software

Ticket #6554 (new defect)

Opened 9 months ago

Last modified 9 months ago

trac-admin allows to init environment with errors

Reported by: techtonik@… Owned by: cmlenz
Priority: normal Milestone:
Component: admin/console Version: 0.11b1
Severity: normal Keywords: mysql
Cc:

Description

When using MySQL backend with the wrong collation the following warning are produced and it's likely that DB is created wrong. But Trac doesn't stop or bring attention to the warning. It should fail with a hint to convert MySQL table to UTF-8 collation as described in MySqlDb.

Creating and Initializing Project
 Installing default wiki pages
 /home/t/lib/python2.3/site-packages/Trac-0.11b1-py2.3.egg/trac/wiki/default-pages/TracBackup imported from TracBackup
/home/t/lib/python2.3/site-packages/Trac-0.11b1-py2.3.egg/trac/db/util.py:50: Warning: Data truncated for column 'text' at row 1
  return self.cursor.execute(sql_escape_percent(sql), args)
 /home/t/lib/python2.3/site-packages/Trac-0.11b1-py2.3.egg/trac/wiki/default-pages/TracInstall imported from TracInstall
...
 /home/t/lib/python2.3/site-packages/Trac-0.11b1-py2.3.egg/trac/wiki/default-pages/TracIni imported from TracIni
/home/t/lib/python2.3/site-packages/Trac-0.11b1-py2.3.egg/trac/db/util.py:50: Warning: Data truncated for column 'text' at row 0
  return self.cursor.execute(sql_escape_percent(sql), args)
 /home/t/lib/python2.3/site-packages/Trac-0.11b1-py2.3.egg/trac/wiki/default-pages/TracFastCgi imported from TracFastCgi
...
 Indexing repository
/home/t/lib/python2.3/site-packages/Trac-0.11b1-py2.3.egg/trac/db/util.py:50: Warning: Data truncated for column 'message' at row 1
  return self.cursor.execute(sql_escape_percent(sql), args)
 [1406]

Attachments

Change History

Changed 9 months ago by eblot

  • keywords mysql added

Add/Change #6554 (trac-admin allows to init environment with errors)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change. Next status will be 'new'
The owner will change to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.