Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#342 closed defect (fixed)

Exception when browsing non-existent revisions

Reported by: daniel+trac@… Owned by: Jonas Borgström
Priority: low Milestone: 0.7.1
Component: version control/browser Version: 0.6.1
Severity: trivial Keywords:
Cc: Branch:
Release Notes:
API Changes:

Description (last modified by Matthew Good)

When manually requesting a non-existent revision number, the browser raises an exception. The browser should check whether a requested revision number is valid before attempting to fetch / display it, and handle this case gracefully by displaying a more easily understandable message to the end user ("sorry, revision X does not exist in the repository" or some such).

Oops...
Trac detected an internal error:

("Reference to non-existent revision '8' in filesystem '/path/to/svnroot/repos/test/db'", 160006)

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.3/site-packages/trac/trac.py", line 254, in main
    real_main()
  File "/usr/lib/python2.3/site-packages/trac/trac.py", line 208, in real_main
    module.run()
  File "/usr/lib/python2.3/site-packages/trac/Module.py", line 38, in run
    self.render()
  File "/usr/lib/python2.3/site-packages/trac/Browser.py", line 137, in render
    info = self.get_info(path, rev, rev_specified)
  File "/usr/lib/python2.3/site-packages/trac/Browser.py", line 38, in get_info
    root = fs.revision_root(self.fs_ptr, revision, self.pool)
SubversionException: ("Reference to non-existent revision '8' in filesystem '/path/to/svnroot/repos/test/db'", 160006)

Attachments (0)

Change History (3)

comment:1 by daniel, 15 years ago

Milestone: 0.7.1
Priority: normallow
Severity: normaltrivial

Agreed, Trac should be friendlier than that :)

comment:2 by Jonas Borgström, 15 years ago

Resolution: fixed
Status: newclosed

Fixed in [519].

comment:3 by Matthew Good, 13 years ago

Description: modified (diff)

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 as closed 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.