Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

Last modified 12 years ago

#1719 closed defect (duplicate)

Configuration error leads to very ugly error

Reported by: PBruin Owned by: Christopher Lenz
Priority: normal Milestone:
Component: wiki system Version: devel
Severity: normal Keywords:
Cc: peter.bruin@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

After upgrading to the latest version I got a very ugly error:

Traceback (most recent call last):
  File "c:\python23\Lib\site-packages\trac\web\modpython_frontend.py", line 265, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "c:\python23\Lib\site-packages\trac\web\main.py", line 423, in dispatch_request
    dispatcher.dispatch(req)
  File "c:\python23\Lib\site-packages\trac\web\main.py", line 285, in dispatch
    resp = chosen_handler.process_request(req)
  File "c:\python23\Lib\site-packages\trac\attachment.py", line 255, in process_request
    self._do_save(req, attachment)
  File "c:\python23\Lib\site-packages\trac\attachment.py", line 302, in _do_save
    attachment.insert(filename, upload.file, size)
  File "c:\python23\Lib\site-packages\trac\attachment.py", line 125, in insert
    assert commonprefix == attachments_dir
AssertionError

After some digging I found it was caused by the following configuration error:
PythonOption TracEnv "c:/trac_dir/trac.db" instead of
PythonOption TracEnv "c:\trac_dir\trac.db"

I think a nice TracError with a usefull message would save people some time. Ofcourse the ability to handle both formats would even be nicer.

Attachments (0)

Change History (3)

comment:1 by anonymous, 19 years ago

Cc: peter.bruin@… added

comment:2 by Matthew Good, 19 years ago

Resolution: duplicate
Status: newclosed

This looks like a duplicate of #1705.

comment:3 by Christian Boos, 12 years ago

Milestone: 0.9

(clearing report:35)

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.