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

mod_authz_svn chokes on repos with a space in its name

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: all
    • Fix Version/s: 1.1-consider
    • Component/s: mod_authz_svn
    • Labels:
      None

      Description

      It looks like something wrong with mod_authz_svn.. I really don't see what I 
      could be doing wrong. My repository should allow only me to read/write to it, 
      but it fails when I try to write to it. 
       
      Just to check what url I am committing to: 
      [greg@localhost CareCircle.com]$ svn info 
      Path: . 
      URL: 
      http://homecomp.gregmartyn.com:8080/svn/My%20Documents/Work/CareCircle.com 
      <snip> 
       
      This bug was reproduced on linux (version 1.1.0 (dev build) compiled Apr  2 
      2004, 00:47:30) and Windows (version 1.0.1 (dev build) compiled Mar 25 2004, 
      16:25:21) 
      The Windows version was installed from the 1.0.1-2 installer. 
       
      Showing a directory listing of that url. Requires me to login. Everything is 
      as expected: 
      [greg@localhost CareCircle.com]$ svn ls 
      http://homecomp.gregmartyn.com:8080/svn/My%20Documents/Work/CareCircle.com 
      --username Greg 
      Authentication realm: <http://homecomp.gregmartyn.com:8080> Subversion 
      repository 
      Password for 'Greg': 
      CareCards.doc 
      Just the top with new nav bar.psd 
      <snip> 
       
      Here is where it fails. I try to do a commit. It asks me to login and 
      proceeds, but then unexpectedly asks me to login again and fails. 
      [greg@localhost CareCircle.com]$ svn ci -m "Organization + how to start an exe 
      from asp" --username Greg 
      Authentication realm: <http://homecomp.gregmartyn.com:8080> Subversion 
      repository 
      Password for 'Greg': 
      Deleting       CareCircle.com/Just the top with new nav bar.psd 
      Adding  (bin)  CareCircle.com/Nav Bar/Source Documents/Just the top with new 
      nav bar.psd 
      Authentication realm: <http://homecomp.gregmartyn.com:8080> Subversion 
      repository 
      Password for 'Greg': 
      Authentication realm: <http://homecomp.gregmartyn.com:8080> Subversion 
      repository 
      Username: Greg 
      Password for 'Greg': 
      Authentication realm: <http://homecomp.gregmartyn.com:8080> Subversion 
      repository 
      Username: Greg 
      Password for 'Greg': 
      svn: Commit failed (details follow): 
      svn: COPY of Nav Bar/Source Documents/Just the top with new nav bar.psd: 
      authorization failed (http://homecomp.gregmartyn.com:8080) 
       
       
      The AuthzSVNAccessFile looks like this. My Documents is the one we're 
      interested in: 
      ------------------------------------ 
      [CareCircle:/] 
      * = r 
      Greg = rw 
       
      [www:/] 
      * = 
      Greg = rw 
       
      [My Documents:/] 
      * = 
      Greg = rw 
      ------------------------------------ 
       
      I have tried changing the line: 
      [My Documents:/] 
      to: 
      [My%20Documents:/] 
      and 
      [My\ Documents:/] 
      but neither works. 
       
       
      Oddly enough, this works: 
      [greg@localhost CareCircle.com]$ cd ../../Finances 
      [greg@localhost Finances]$ svn info 
      Path: . 
      URL: http://homecomp.gregmartyn.com:8080/svn/My%20Documents/Finances 
      Repository UUID: 62f9a544-9084-6143-a508-1cc8c3e1580e 
      Revision: 89 
      Node Kind: directory 
      Schedule: normal 
      Last Changed Rev: 86 
      Last Changed Date: 2004-04-04 16:44:36 -0400 (Sun, 04 Apr 2004) 
       
      [greg@localhost Finances]$ svn ci -m "Updated Finances" --username Greg 
      Authentication realm: <http://homecomp.gregmartyn.com:8080> Subversion 
      repository 
      Password for 'Greg': 
      Sending        Finances/GnuCash 
      Adding         Finances/GnuCash.20040408184002.log 
      Adding         Finances/GnuCash.20040408190536.xac 
      Adding         Finances/GnuCash.20040409143111.log 
      Adding         Finances/GnuCash.20040409144253.xac 
      Adding         Finances/GnuCash.20040409144347.xac 
      Adding         Finances/GnuCash.20040409153243.xac 
      Adding         Finances/GnuCash.20040411044850.log 
      Adding         Finances/GnuCash.20040411045251.xac 
      Adding         Finances/GnuCash.20040411212633.log 
      Adding         Finances/GnuCash.20040411212703.xac 
      Adding         Finances/GnuCash.20040413150908.log 
      Adding         Finances/GnuCash.20040413151252.xac 
      Adding         Finances/GnuCash.20040413151259.log 
      Transmitting file data .............. 
      Committed revision 94.
      

      Original issue reported by flyen

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: