Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

Last modified 12 years ago

#105 closed defect (duplicate)

Changeset viewer breaks when a change has no author

Reported by: verbosus Owned by: Jonas Borgström
Priority: normal Milestone:
Component: version control/changeset view Version: 0.5.1
Severity: normal Keywords:
Cc: antonio@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

In the changeset viewer, if one tries to view a changeset and the author of that rev is anonymous or hasn't been set – marked in ‘svn log’ as ‘(no author)’ – Trac breaks with this error:-

setValue(name, value)() argument 2 must be string or read-only buffer, not None

Full Traceback:-

Traceback (most recent call last):
  File "/usr/lib/python2.2/site-packages/trac/trac.py", line 203, in main
    real_main()
  File "/usr/lib/python2.2/site-packages/trac/trac.py", line 155, in real_main
    module.run()
  File "/usr/lib/python2.2/site-packages/trac/Module.py", line 37, in run
    self.render()
  File "/usr/lib/python2.2/site-packages/trac/Changeset.py", line 222, in render
    self.cgi.hdf.setValue('changeset.author', changeset_info['author'])
TypeError: setValue(name, value)() argument 2 must be string or read-only buffer, not None

Viewing a revision where the author has been set works fine, though. A possible solution would be to allow the setValue() function to allow ‘None’ as its second value or to check the value of changeset_infoauthor before doing that.

Cheers,

—Antonio Cavedoni

Attachments (0)

Change History (2)

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

Resolution: duplicate
Status: newclosed

Thanks for the report, but it looks like this bug already got fixed by [197].

comment:2 by Christian Boos, 12 years ago

Milestone: 0.5.2

(clearing report:35)

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.