Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#8508 closed defect (wontfix)

wiki dump doesn't check whether a directory was specified

Reported by: Sebastian Krysmanski <sebastian@…> Owned by:
Priority: normal Milestone:
Component: admin/console Version: 0.11.5
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I just tried to executed this command:

> trac-admin ../mtpp/sources/ wiki dump

I got this backtrace:

Traceback (most recent call last):
  File "/usr/local/bin/trac-admin", line 8, in <module>
    load_entry_point('Trac==0.11.5', 'console_scripts', 'trac-admin')()
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.5-py2.6.egg/trac/admin/console.py", line 1345, in run
    return admin.onecmd(command)
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.5-py2.6.egg/trac/admin/console.py", line 133, in onecmd
    rv = cmd.Cmd.onecmd(self, line) or 0
  File "/usr/lib/python2.6/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.5-py2.6.egg/trac/admin/console.py", line 764, in do_wiki
    self._do_wiki_dump(dir)
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.5-py2.6.egg/trac/admin/console.py", line 841, in _do_wiki_dump
    os.mkdir(dir)
OSError: [Errno 2] No such file or directory: ''

It seems as if the wiki dump command doesn't check whether a directory was actually specified.

Attachments (0)

Change History (1)

comment:1 by Remy Blank, 15 years ago

Resolution: wontfix
Status: newclosed

This is fixed in trunk, where the infrastructure for implementing trac-admin has been reworked.

As suggested by Christian on trac-dev, we should be freezing the 0.11-stable branch, and only fix critical issues. This is a minor issue, so I'm closing it as "wontfix".

Modify Ticket

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