Edgewall Software
Modify

Ticket #1630 (closed defect: fixed)

Opened 7 years ago

Last modified 5 years ago

Linking to non-existant changeset causes error instead of warning

Reported by: David Kramer <david@…> Owned by: cmlenz
Priority: highest Milestone: 0.9
Component: version control/changeset view Version: devel
Severity: critical Keywords:
Cc:
Release Notes:
API 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

Change History

comment:1 Changed 7 years ago by cmlenz

  • Milestone set to 0.9
  • Owner changed from jonas to cmlenz
  • Priority changed from normal to highest
  • Severity changed from normal to critical
  • Status changed from new to assigned
  • Version changed from 0.8.1 to devel

comment:2 Changed 7 years ago by cmlenz

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

comment:3 Changed 7 years ago by anonymous

  • Resolution set to worksforme
  • Status changed from assigned to closed

comment:4 Changed 7 years ago by anonymous

  • Resolution worksforme deleted
  • Status changed from closed to reopened

comment:5 Changed 7 years ago by cboos

  • Resolution set to fixed
  • Status changed from reopened to closed

Fixed in [1766]

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from cmlenz. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.