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: | 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)
Note:
See TracTickets
for help on using tickets.
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".