[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

SVN under Apache looking in .subversion/servers

From: Goddard Lee <lee.goddard_at_easa.eu.int>
Date: 2005-09-28 08:32:53 CEST

I'm having problems with the perl bindings, SVN::Client, and with 'svn'
generally, though Apache 2.0. When I run the little test script below as
'nobody', as my httpd would, it fails on both counts with the message:

Bogus filename: Can't open config file '/root/.subversion/servers'

All I want to do is add/commit a document with a specific username. I
can see no reference in the perldocs to the client looking on the

Is there anyway to have Apache 2.0 perform these tasks with subversion?

Please help!

#! perl
use Test::More tests => 3;
use strict;
use warnings;
diag "Sub ref";
eval {
my $ctx = new SVN::Client(
auth => [
SVN::Client::get_simple_prompt_provider(\&simple_prompt, 1),
$@? fail($@) : pass("OK");
diag "Anon sub";
eval {
my $ctx = new SVN::Client(
auth => [
SVN::Client::get_simple_prompt_provider(sub {
my $cred = shift;
}, 2),
$@? fail($@) : pass("OK");
sub simple_prompt {
my $cred = shift;

[root@bdms t]# sudo -u nobody perl ctx.mini.t
ok 1 - use SVN::Client;
# Sub ref
not ok 2 - Bogus filename: Can't open config file
'/root/.subversion/servers' at ctx.mini.t line 12 #
# Failed test (ctx.mini.t at line 18)
# Anon sub
not ok 3 - Bogus filename: Can't open config file
'/root/.subversion/servers' at ctx.mini.t line 28 #
# Failed test (ctx.mini.t at line 32)
# Looks like you failed 2 tests of 3.
[root@bdms t]#

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 28 08:32:53 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.