[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Apache2: mod_dav_svn and dynamic SVNParentPath / SVNPATH



hi,

I have the following SVN structure:

The main SVN repository directory, which holds all users (dynamic created) and SVN projects: /opt/op/svn/repositories/
The repository from the user: /opt/op/svn/repositories/$USERNAME/$USERNAME-PROJECTNAME

If I want to access "my" SVN repository - for example - "https://svn.example.com/svn/foobar/foobar-myproject";, I get an error, ("format" ...  no such file), because mod_dav_svn tries to open the format file on:  /opt/op/svn/repositories/foobar/format, which is correct, because: 

# ls  -l /opt/op/svn/repositories/foobar/
drwxr-xr-x 6 openproject openproject 4096 Jan 26 15:42 foobar-myproject

# ls -l /opt/op/svn/repositories/foobar/foobar-myproject/

drwxr-xr-x 2 openproject openproject 4096 Jan 26 15:42 conf
drwxr-sr-x 6 openproject openproject 4096 Jan 26 15:42 db
-r--r--r-- 1 openproject openproject    2 Jan 26 15:42 format
drwxr-xr-x 2 openproject openproject 4096 Jan 26 15:42 hooks
drwxr-xr-x 2 openproject openproject 4096 Jan 26 15:42 locks
-rw-r--r-- 1 openproject openproject  229 Jan 26 15:42 README.txt

So, SVNParentPath / SVNPATH is mostly wrong (I think), because the $USERNAME (foobar) is missing. Is there a way to fix it? I think, it must be dynamic, because I have 500-1000 users. The reason for /opt/op/svn/repositories/$USERNAME/ is to keep it easy for delete/manage/backup :-)

Any suggestions?

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


Reply to: