Edgewall Software

Ticket #5334 (closed defect: duplicate)

Opened 16 months ago

Last modified 5 weeks ago

UNC paths from command line in trac-admin corrupted

Reported by: twoods-trac@… Owned by: cmlenz
Priority: normal Milestone:
Component: admin/console Version: 0.10.4
Severity: normal Keywords:
Cc:

Description

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

Change History

Changed 16 months ago by twoods-trac@…

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.

Changed 2 months ago by anonymous

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

Changed 5 weeks ago by cboos

  • status changed from new to closed
  • resolution set to duplicate

See also #5787.

Add/Change #5334 (UNC paths from command line in trac-admin corrupted)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.