Edgewall Software

Opened 14 years ago

Last modified 3 years ago

#9208 new defect

Support for SVN repository on a UNC path on Windows — at Initial Version

Reported by: morphiend@… Owned by:
Priority: normal Milestone: unscheduled
Component: version control Version: 0.11
Severity: normal Keywords: svn patch needfixup
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

While setting up a Trac installation a year ago, I ran into a problem where my SVN repository was stored on a UNC accessible path on a Windows-based Apache system. In other words, I was running Trac on Apache for Windows, with the python module for Apache. Our SVN repository was stored on a separate network drive and only accessible via a UNC path.

At the time I was using Trac 0.11.x (not sure of the revision, and I no longer operate that system).

The problem is due to SubversionRepository _init_'s not handling the UNC slashes properly. When the path is fixed by converting the '\'\' to '\' the UNC slashes were being transformed to just '\' instead of staying '\'\'. I corrected this by adding splitunc() call before the replace and only performing the replace on the non-UNC portion of the path.

I've attached a diff patch making the similar change to the latest version from the 0.12 trunk, as well as the original modified version from my 0.11 installation.

Change History (2)

by morphiend@…, 14 years ago

Attachment: svn_fs.py.011 added

Patched version from 0.11 source

by morphiend@…, 14 years ago

Attachment: svn_fs.py.012.rev9444 added

Patched version from 0.12 source, rev 9444

Note: See TracTickets for help on using tickets.