Edgewall Software

Opened 15 years ago

Closed 14 years ago

#5334 closed defect (duplicate)

UNC paths from command line in trac-admin corrupted

Reported by: twoods-trac@… Owned by: Christopher Lenz
Priority: normal Milestone:
Component: admin/console Version: 0.10.4
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


On Windows, when using a UNC path with backslashes as an argument to trac-admin like the following:

python trac-admin \path\to\projenv hotcopy \\server\folder\path\to\backup

The following output is produced:

Hotcopying \path\to\projenv to \\\\server\\folder\\path\\to\\backup ...Command failed: [Errno 2] No such file or directory

Executing the hotcopy command within the trac-admin shell with the same path succeeds.

A workaround is to use forward slashes in place of the backslashes on the command line for the UNC path.

Attachments (0)

Change History (3)

comment:1 by twoods-trac@…, 15 years ago

It looks like the problem occurs when building the string to pass to onecmd at admin.py line 1227. The input args list contains the correct UNC string, however in the s_args string all of the backslashes are doubled.

comment:2 by anonymous, 14 years ago

Don't know if it is expected but using forward slashes can work around this problem:

trac-admin C:\data\Projets\trac\Project hotcopy nas/Trac/Backup/Project

comment:3 by Christian Boos, 14 years ago

Resolution: duplicate
Status: newclosed

See also #5787.

Modify Ticket

Change Properties
Set your email in Preferences
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.