Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#1630 closed defect (fixed)

Linking to non-existant changeset causes error instead of warning

Reported by: David Kramer <david@…> Owned by: Christopher Lenz
Priority: highest Milestone: 0.9
Component: version control/changeset view Version: devel
Severity: critical Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I was fooling around with the demo site, especially with TrackLinks. I tried putting a link to a non-existant changeset (since I don't know what revisions are present in your subversion repository), and got the following:

 Trac detected an internal error:

unpack non-sequence

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. 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.3/site-packages/trac/web/modpython_frontend.py", line 265, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 419, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 283, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/trac/Changeset.py", line 60, in process_request
    chgset = repos.get_changeset(rev)
  File "/usr/lib/python2.3/site-packages/trac/versioncontrol/cache.py", line 49, in get_changeset
    return CachedChangeset(rev, self.db, self.authz)
  File "/usr/lib/python2.3/site-packages/trac/versioncontrol/cache.py", line 124, in __init__
    date, author, message = cursor.fetchone()
TypeError: unpack non-sequence

I would think a simple message saying the changeset number was invalid, like for milestones, would be an improvement.

See the link to changeset 1759 in ticket 23 in the demo system for the link in question.

Attachments (0)

Change History (5)

comment:1 by Christopher Lenz, 19 years ago

Milestone: 0.9
Owner: changed from Jonas Borgström to Christopher Lenz
Priority: normalhighest
Severity: normalcritical
Status: newassigned
Version: 0.8.1devel

comment:2 by Christopher Lenz, 19 years ago

The link in the ticket you referenced actually looks good AFAICT.

comment:3 by anonymous, 19 years ago

Resolution: worksforme
Status: assignedclosed

comment:4 by anonymous, 19 years ago

Resolution: worksforme
Status: closedreopened

comment:5 by Christian Boos, 19 years ago

Resolution: fixed
Status: reopenedclosed

Fixed in [1766]

Modify Ticket

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