Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

Last modified 18 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:

Description

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

module.run()

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

self.render()

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

self.pool)

TypeError: not a string

Attachments (0)

Change History (7)

comment:1 by Jonas Borgström, 20 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@…, 20 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@…, 20 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, 20 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, 20 years ago

Milestone: 0.8
Priority: highhighest
Severity: normalblocker

comment:6 by Jonas Borgström, 20 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, 20 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [800].

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.