Edgewall Software
Modify

Ticket #342 (closed defect: fixed)

Opened 8 years ago

Last modified 6 years ago

Exception when browsing non-existent revisions

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

Description (last modified by mgood) (diff)

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

Change History

comment:1 Changed 8 years ago by daniel

  • Milestone set to 0.7.1
  • Priority changed from normal to low
  • Severity changed from normal to trivial

Agreed, Trac should be friendlier than that :)

comment:2 Changed 8 years ago by jonas

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

Fixed in [519].

comment:3 Changed 6 years ago by mgood

  • Description modified (diff)
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 jonas. 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.