Modify

Opened 8 years ago

Closed 8 years ago

#497 closed defect (fixed)

UnicodeDecodeError

Reported by: jouvin@… Owned by: eblot
Priority: normal Component: TracFrenchTranslation
Severity: normal Keywords:
Cc: jouvin@… Trac Release: 0.10

Description

After starting french Trac with a Trac area not having the right permission (no write permission on Trac db for trac user, apache), I got the following error. Looks as something improperly handled...

 /www/Web/servers/trac/0.10-french-1005/lib/python2.4/site-packages/trac/db/sqlite_backend.py in __init__(self=<trac.db.sqlite_backend.SQLiteConnection object>, path=u'/projects/trac-fr/Test/db/trac.db', params={}) 
  142                    not os.access(dbdir, os.R_OK + os.W_OK):
 
  143                 from getpass import getuser
 
  144                 raise TracError, "L'utilisateur %s a besoin des permissions " \
 
  145                                  "en lecture _et_ en écriture sur la base de " \
 
  146                                  "données %s ainsi que sur le répertoire " \
 
global TracError = <class trac.core.TracError>, getuser = <function getuser>, path = u'/projects/trac-fr/Test/db/trac.db' 

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128) 
      args = ('ascii', '%s ainsi que sur le r\xc3\xa9pertoire dans lequel elle est situ\xc3\xa9e.', 21, 22, 'ordinal not in range(128)') 
      encoding = 'ascii' 
      end = 22 
      object = '%s ainsi que sur le r\xc3\xa9pertoire dans lequel elle est situ\xc3\xa9e.' 
      reason = 'ordinal not in range(128)' 
      start = 21 

Attachments (0)

Change History (3)

comment:1 Changed 8 years ago by anonymous

  • Component changed from TracHacks to TracFrenchTranslation
  • Owner changed from athomas to eblot

comment:2 Changed 8 years ago by eblot

  • Status changed from new to assigned

Can you check out [1014] to see whether it solves this issue? Thanks.

comment:3 Changed 8 years ago by anonymous

  • Resolution set to fixed
  • Status changed from assigned to closed

Works fine. Thanks.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from eblot. Next status will be 'closed'.
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.