0

Hi Guys,

This isn't really the right place to post this, but there doesn't seem to be a right place, so here it goes!

I'm running a bunch of subversion repositories (one repository per project) over http (using apache).

One of the repositories is a shared_classes repository that stores shared scripts including a db_class and a db_connect.

In essence, the db_class requires the db_connect and the db_connect creates the connection based on a flag it is passed. I am trying to secure the db_connect file (because it has a DB password in it) and it doesn't seem to want to work.

I'm using mod_authz_svn and this is the line in my httpd.conf file:

<Location /svn>
  DAV svn
  SVNParentPath /u0/svn
  Require valid-user
  AuthType Basic
  AuthName "Atlantic Subversion Repositories"
  AuthUserFile /usr/local/Zend/apache2/conf/svn-auth
  SVNListParentPath On
</Location>

<Location /svn/shared_classes>
  AuthzSVNAccessFile /usr/local/Zend/apache2/conf/svn-path-auth-shared_classes
</Location>

And here is my authz file:

[groups]
dba = <usernames>

[/]
* = rw

[/trunk/db_connect.php]
* =
@dba = rw

When I point my web browser to that repository, it works. I can see all files / dirs except for the db_connect.php script.

When I try to view it in eclipse or tortoiseSVN, I can download and view that file.
Now, here comes the rub.
If (in TortoiseSVN) I try to do a diff of two revisions of that file, or if I try to view annotations, etc, it fails, giving me a permission error.

All of the examples I can find are securing entire directories, but I just need to secure a single file.
Does anyone have any ideas?

Edited by unixmonkey: n/a

2
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by unixmonkey
0

does it work from command line?

svn diff filename.php


anything weird in info?

svn info


does your IDE have it checked out via http or native svn?

0

does it work from command line?

svn diff filename.php


anything weird in info?

svn info


does your IDE have it checked out via http or native svn?

Doing a diff from the command line works (I can see the diff info, even though it's checked out over http).

There's nothing odd in the svn info that I can see.

My IDE is checking out the repository from http. The repositories are on a seperate server which is only accessable through http (I didn't want to mess around with ssh+svn).

0

hrmm. well sorry then it's beyond me. I don't use TortoiseSVN, and since your CLI works, I'd say it's tortoise. I use Netbeans and command line.

Maybe someone else has some ideas.

0

hrmm. well sorry then it's beyond me. I don't use TortoiseSVN, and since your CLI works, I'd say it's tortoise. I use Netbeans and command line.

Maybe someone else has some ideas.

subclipse (one of the subversion extensions for Eclipse) is doing the same thing. If I view it from a web-browser the permissions seem to work. It's the weirdest thing.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.