Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#9072 closed defect (fixed)

TypeError: %d format: a number is required, not unicode

Reported by: jupolun Owned by: Remy Blank
Priority: normal Milestone: 0.12
Component: version control Version: 0.12dev
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /browser, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'path': '/'}

User Agent was: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.89 Safari/532.5

System Information

Trac 0.12dev-r9234
Python 2.6.4 (r264:75706, Jan 13 2010, 11:56:30)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)]
setuptools 0.6
SQLite 3.6.22
pysqlite 2.5.6
Genshi 0.6dev-r1093
Babel 0.9.4
mod_wsgi 3.1 (WSGIProcessGroup WSGIApplicationGroup gravitsapa|)
Subversion 1.6.6 (r40053)
jQuery 1.4.1

Enabled Plugins

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/Trac-0.12dev_r9234-py2.6.egg/trac/web/main.py", line 499, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.6/site-packages/Trac-0.12dev_r9234-py2.6.egg/trac/web/main.py", line 231, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.6/site-packages/Trac-0.12dev_r9234-py2.6.egg/trac/versioncontrol/web_ui/browser.py", line 381, in process_request
    context, all_repositories, order, desc)
  File "/usr/lib/python2.6/site-packages/Trac-0.12dev_r9234-py2.6.egg/trac/versioncontrol/web_ui/browser.py", line 490, in _render_repository_index
    youngest = repos.get_changeset(repos.youngest_rev)
  File "/usr/lib/python2.6/site-packages/Trac-0.12dev_r9234-py2.6.egg/trac/versioncontrol/cache.py", line 66, in get_changeset
    return CachedChangeset(self.repos, self.normalize_rev(rev), self.env)
  File "/usr/lib/python2.6/site-packages/Trac-0.12dev_r9234-py2.6.egg/trac/versioncontrol/cache.py", line 400, in __init__
    (repos.id, '%010d' % rev))
TypeError: %d format: a number is required, not unicode

Attachments (0)

Change History (6)

comment:1 by Christian Boos, 14 years ago

Mm, maybe rev being u'' here. Missing call to normalize_rev() somewhere? I can't reproduce though. Can you give us more details about your setup (in particular, the output of trac-admin <env> repository list).

Also, if haven't created your environment starting with this revision (or ≥ r9224), have you restarted your environment after doing the trac-admin <env> upgrade?

Unrelated, but I noticed "WSGIApplicationGroup gravitsapa|" in your system info, while it should be configured as "WSGIApplicationGroup %{GLOBAL}" to avoid issues with Subversion (see TracModWSGI).

comment:2 by Remy Blank, 14 years ago

It could also be due to an un-synced repository. I'll try to reproduce it here.

comment:3 by Remy Blank, 14 years ago

Ok, that's exactly what happens. Add a new repository, go to the repository index. Boom.

comment:4 by Remy Blank, 14 years ago

Milestone: 0.12
Resolution: fixed
Status: newclosed

Fixed in [9236].

comment:5 by Remy Blank, 14 years ago

Owner: set to Remy Blank

comment:6 by Remy Blank, 14 years ago

Component: generalversion control
Version: 0.12dev

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Remy Blank.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Remy Blank 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.