php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #58370 add svn_auth_set_parameter
Submitted: 2008-10-07 23:37 UTC Modified: 2008-10-08 22:27 UTC
From: czerwonka at arcticpenguin dot ca Assigned:
Status: Closed Package: svn (PECL)
PHP Version: 5.2.3 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: czerwonka at arcticpenguin dot ca
New email:
PHP Version: OS:

 

 [2008-10-07 23:37 UTC] czerwonka at arcticpenguin dot ca
Description:
------------
Given the bug described at http://pecl.php.net/bugs/bug.php?id=14749 I still need an ability to use the svn extension from Apache and I'm getting a security error:

svn_auth_set_parameter(): svn error(s) occured\n13 (Permission denied) Can't open file '/root/.subversion/servers': Permission denied

Reproduce code:
---------------
Just use any method, svn_log() for example, from Apache and you'll see the error every time.

Expected result:
----------------
I expect to see a data structure populated with subversion log information.

Actual result:
--------------
svn_auth_set_parameter(): svn error(s) occured\n13 (Permission denied) Can't open file '/root/.subversion/servers': Permission denied

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-08 05:33 UTC] scottmac@php.net
This function already exists and has done for a while, it 
would be great if you could post an actual test script 
though that is causing you problems.

<?php

svn_auth_set_parameter(SVN_AUTH_PARAM_CONFIG_DIR, 
'/www/site/.svn');
print_r(svn_log('/www/site/somefolder'));
 [2008-10-08 07:33 UTC] czerwonka at arcticpenguin dot ca
Sure... here's what I'm seeing:

<?php 
echo 'SVN Client is ' . svn_client_version(); // line #26 works fine
svn_auth_set_parameter(SVN_AUTH_PARAM_CONFIG_DIR, '/srv/www/htdocs/vhosts/www.andyczerwonka.com/specs/.svn'); // line 27 blows up
?>

When that piece of code executes, I get:

client 10.10.1.1] PHP Warning:  svn_auth_set_parameter(): svn error(s) occured\n13 (Permission denied) Can't open file '/root/.subversion/servers': Permission denied\n in /srv/www/htdocs/vhosts/www.andyczerwonka.com/specs/index.php on line 27

Line 27 is the call to svn_auth_set_parameter
 [2008-10-08 10:34 UTC] scottmac@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

I've allowed a failed configuration read to continue now, it has nothing to do with what this bug report is and was in a separate bit of code.

To test from the command line for anyone who has seen this issue its:

export HOME=/root/; php /tmp/test.php; export HOME=/home/scott
 [2008-10-08 22:27 UTC] czerwonka at arcticpenguin dot ca
So which command can I now use and how?
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 07 08:01:34 2025 UTC