Edgewall Software

Ticket #2352 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Problem with umlaut in Subversion commit message

Reported by: horst.triebenbacher@… Owned by: jonas
Priority: normal Milestone:
Component: ticket system Version: 0.9
Severity: normal Keywords:
Cc:

Description

I have commited a change to the subversion repository. The message contains an umlaut ä and added a note to an existing ticket - using the ref directive.

Now I'm not able to view the ticket - see Traceback below:

Traceback (most recent call last):
  File "C:\Server\Python23\Lib\site-packages\trac\web\modpython_frontend.py", line 206, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "C:\Server\Python23\Lib\site-packages\trac\web\main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "C:\Server\Python23\Lib\site-packages\trac\web\main.py", line 107, in dispatch
    resp = chosen_handler.process_request(req)
  File "C:\Server\Python23\Lib\site-packages\trac\ticket\web_ui.py", line 214, in process_request
    self._insert_ticket_data(req, db, ticket, reporter_id)
  File "C:\Server\Python23\Lib\site-packages\trac\ticket\web_ui.py", line 398, in _insert_ticket_data
    changelog = ticket.get_changelog(db=db)
  File "C:\Server\Python23\Lib\site-packages\trac\ticket\model.py", line 267, in get_changelog
    for t, author, field, oldvalue, newvalue in cursor:
  File "C:\Server\Python23\Lib\site-packages\trac\db.py", line 83, in __iter__
    row = self.cursor.fetchone()
  File "C:\Server\Python23\Lib\site-packages\trac\db.py", line 230, in fetchone
    return row and self._convert_row(row) or None
  File "C:\Server\Python23\Lib\site-packages\trac\db.py", line 226, in _convert_row
    return tuple([(isinstance(v, unicode) and [v.encode('utf-8')] or [v])[0]
UnicodeDecodeError: 'utf8' codec can't decode byte 0x81 in position 28: unexpected code byte

I'm using Trac 0.9, Subversion 1.2.3 together with an Apache 2.0.54 on a Windows System.

Thanks in advance

Horst

PS: Any suggestions for a workaround are also welcome

Attachments

DP1234.doc (39.0 KB) - added by anonymous 3 years ago.

Change History

Changed 3 years ago by anonymous

  • status changed from new to closed
  • resolution set to invalid
  • component changed from ticket system to search system

Changed 3 years ago by cboos

  • status changed from closed to reopened
  • resolution invalid deleted
  • component changed from search system to ticket system

To anonymous: this is not a test system, you just closed a valid ticket.

Changed 3 years ago by anonymous

Python traceback
Traceback (most recent call last):
  File "D:\Python23\Lib\site-packages\trac\web\modpython_frontend.py", line 206, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "D:\Python23\Lib\site-packages\trac\web\main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "D:\Python23\Lib\site-packages\trac\web\main.py", line 107, in dispatch
    resp = chosen_handler.process_request(req)
  File "D:\Python23\Lib\site-packages\trac\ticket\web_ui.py", line 214, in process_request
    self._insert_ticket_data(req, db, ticket, reporter_id)
  File "D:\Python23\Lib\site-packages\trac\ticket\web_ui.py", line 398, in _insert_ticket_data
    changelog = ticket.get_changelog(db=db)
  File "D:\Python23\lib\site-packages\trac\ticket\model.py", line 278, in get_changelog
    "ORDER BY time", (self.id,  str(self.id), self.id))
  File "D:\Python23\Lib\site-packages\trac\db.py", line 219, in execute
    args or [])
  File "D:\Python23\Lib\site-packages\trac\db.py", line 211, in _rollback_on_error
    return function(self, *args, **kwargs)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb5 in position 13: unexpected code byte

Changed 3 years ago by anonymous

Changed 3 years ago by cboos

  • status changed from reopened to closed
  • resolution set to fixed

Duplicate of #1310.

Add/Change #2352 (Problem with umlaut in Subversion commit message)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.