Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-4418

File URLs truncated on Windows with mapped and SUBST drives

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.x
    • 1.8.4
    • libsvn_ra_local
    • None
    • Windows 7

    Description

      SVN Users list post: http://svn.haxx.se/users/archive-2013-08/0518.shtml
      
      C:\...\_Projects\Documentation>svn --version
      svn, version 1.8.1 (r1503906)
         compiled Jul 22 2013, 19:58:17 on x86-microsoft-windows
      
      Copyright (C) 2013 The Apache Software Foundation.
      This software consists of contributions made by many people;
      see the NOTICE file for more information.
      Subversion is open source software, see http://subversion.apache.org/
      
      The following repository access (RA) modules are available:
      
      * ra_svn : Module for accessing a repository using the svn network protocol.
        - with Cyrus SASL authentication
        - handles 'svn' scheme
      * ra_local : Module for accessing a repository on local disk.
        - handles 'file' scheme
      * ra_serf : Module for accessing a repository via WebDAV protocol using serf.
        - handles 'http' scheme
        - handles 'https' scheme
      
      When using a file:/// URL with the drive letter being a mapped network share or a SUBST 
      drive letter, and the root of the repository being at the root of the mapped/SUBSTed drive, 
      the first character of the path of subdirectories in the repository is lost.
      
      The mapped drive was reported via TSVN 1.8.1 on Windows XP, the SUBST drive letter on 
      Windows 7 64-bit. Steps to reproduce:
      
      PS R:\> svnadmin create LocalTest
      PS R:\> svn co file:///r:/LocalTest r:\TestOne
      Checked out revision 0.
      PS R:\> cd TestOne
      PS R:\TestOne> mkdir FirstChild
      
      
          Directory: R:\TestOne
      
      
      Mode                LastWriteTime     Length Name
      ----                -------------     ------ ----
      d----        08/28/2013     08:48            FirstChild
      
      
      PS R:\TestOne> svn add FirstChild
      A         FirstChild
      PS R:\TestOne> svn ci -m "First Commit"
      Adding         FirstChild
      
      Committed revision 1.
      PS R:\TestOne> cd ..
      PS R:\> svn ls file:///r:/LocalTest
      FirstChild/
      PS R:\> subst S: r:/LocalTest
      PS R:\> dir s:
      
      
          Directory: s:\
      
      
      Mode                LastWriteTime     Length Name
      ----                -------------     ------ ----
      d----        08/28/2013     08:46            conf
      d----        08/28/2013     08:48            db
      d----        08/28/2013     08:46            hooks
      d----        08/28/2013     08:46            locks
      -ar--        08/28/2013     08:46          2 format
      -a---        08/28/2013     08:46        251 README.txt
      
      
      PS R:\> svn co file:///s:/ r:\TestTwo
      A    TestTwo\FirstChild
      Checked out revision 1.
      PS R:\> svn co file:///s:/FirstChild r:\TestThree
      svn: E160005: Target path '/irstChild' does not exist
      PS R:\> svn co file:///r:/LocalTest/FirstChild r:\TestFour
      Checked out revision 1.
      PS R:\> svn ls file:///s:/
      FirstChild/
      PS R:\> svn ls file:///s:/FirstChild
      PS R:\>
      
      I can check out from the actual filesystem path (file:///r:/LocalTest/FirstChild) but not 
      the path using S: as the repository root (file:///s:/FirstChild), but svn ls behaves 
      correctly:
      
      PS R:\TestFour> svn add file.txt
      A         file.txt
      PS R:\TestFour> svn ci -m "new file"
      Adding         file.txt
      Transmitting file data .
      Committed revision 2.
      PS R:\TestFour> svn ls file:///r:/LocalTest/
      FirstChild/
      PS R:\TestFour> svn ls file:///r:/LocalTest/ -R
      FirstChild/
      FirstChild/file.txt
      PS R:\TestFour> svn ls file:///s:/ -R
      FirstChild/
      FirstChild/file.txt
      PS R:\TestFour>
      

      Original issue reported by levyam

      Attachments

        Activity

          People

            Unassigned Unassigned
            subversion-importer Subversion Importer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: