Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

#117 closed defect (fixed)

The log-module can't handle a missing ''author''-property.

Reported by: anonymous Owned by: Jonas Borgström
Priority: normal Milestone: 0.6
Component: version control/log view Version: 0.5.2
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Whenever I click on _any_ file name in the "Browser" I get the error below. Everything else seems to work fine as far as I can tell. Oups… Trac detected an internal error:

coercing to Unicode: need string or buffer, NoneType found If you think this really should work and you can reproduce it. Then you should consider to report this problem to the Trac team.

Go to http://trac.edgewall.com/ and there you create a new ticket where you describe the problem, how to reproduce it and don't forget to include the python traceback found below.

Python traceback Traceback (most recent call last):

File "/usr/local/lib/python2.2/site-packages/trac/trac.py", line 249, in main

real_main()

File "/usr/local/lib/python2.2/site-packages/trac/trac.py", line 204, in real_main

module.run()

File "/usr/local/lib/python2.2/site-packages/trac/Module.py", line 36, in run

self.render()

File "/usr/local/lib/python2.2/site-packages/trac/Log.py", line 72, in render

info = self.get_info (self.path)

File "/usr/local/lib/python2.2/site-packages/trac/Log.py", line 48, in get_info

self.pool)

File "/usr/local/lib/python2.2/site-packages/trac/Log.py", line 34, in log_receiver

item = {

File "/usr/local/lib/python2.2/site-packages/trac/util.py", line 145, in utf8_to_iso

utf = unicode(text, 'utf-8')

TypeError: coercing to Unicode: need string or buffer, NoneType found

Attachments (0)

Change History (4)

comment:1 by anonymous, 20 years ago

Component: generalbrowser

comment:2 by anonymous, 20 years ago

Many of my older revisions have no "author" in SVN. If I change Log.py line 36 from:

'author' : utf8_to_iso(author),

to

'author' : utf8_to_iso(author or 'None'),

things seem to work. I don't know Python so I don't know if this is a good fix…

comment:3 by Jonas Borgström, 20 years ago

Component: browserlog view
Milestone: 0.6
Status: newassigned
Summary: Trac "Oups" in browserThe log-module can't handle a missing ''author''-property.

We fixed a similar problem in svn:/trunk/trac/Changeset.py but we forgot to do the same in svn:/trunk/trac/Log.py

This fix should probably be merged into the 0.5-stable branch as well…

comment:4 by Jonas Borgström, 20 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [235] and [236].

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.