Edgewall Software

Opened 18 years ago

Closed 18 years ago

Last modified 16 years ago

#512 closed defect (fixed)

In the browse source module you get an error when viewing the revision log

Reported by: anonymous Owned by: Jonas Borgström
Priority: highest Milestone: 0.8
Component: version control/log view Version: 0.7.1
Severity: blocker Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


Oops… Trac detected an internal error:

not a string

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 create a new ticket where you describe the problem, how to reproduce it and don't forget to include the python traceback found below.

TracGuide — The Trac User and Administration Guide Python traceback

Traceback (most recent call last):

File "/usr/lib/python2.2/site-packages/trac/ModPythonHandler.py", line 174, in handler

core.dispatch_request(mpr.path_info, args, mpr, env)

File "/usr/lib/python2.2/site-packages/trac/core.py", line 380, in dispatch_request


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


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

info = self.get_info (self.path, rev)

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


TypeError: not a string

Attachments (0)

Change History (7)

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

So you can't view the revision log for any file or does this just happen for some files?

comment:2 by jamesm@…, 18 years ago

I experience this problem on the Trac project website right now. Current online rev is 0.7.1pre - I was going to wait till you guys went live with 0.7.1 to make sure it was really a problem. If you check the rev history on any file you'll get the above error message.

comment:3 by jamesm@…, 18 years ago

I do not experience this problem with the official 0.7.1 release (Windows at least) on my own test setup.

comment:4 by daniel, 18 years ago

This seems to only occur when running trac in the mod_python frontend.

I switched the project site back to the cgi, and it works now.

comment:5 by anonymous, 18 years ago

Milestone: 0.8
Priority: highhighest
Severity: normalblocker

comment:6 by Jonas Borgström, 18 years ago

Component: browserlog view
Status: newassigned

The FieldStorage supplied by mod_python do not return ordinary strings. It returns StringFields that are str subclasses.

comment:7 by Jonas Borgström, 18 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [800].

Modify Ticket

Change Properties
Set your email in Preferences
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.