cant view project's history

40 views
Skip to first unread message

phanorcoll

unread,
Jul 3, 2009, 11:38:14 AM7/3/09
to ReposStyle
i get the following error when trying to view the hostory of a folder
or a file

svn: PROPFIND request failed on '/proyectos/trunk/mod_soporte'
svn: PROPFIND of '/proyectos/trunk/mod_soporte': authorization failed
(http://xxx.xxx.xx.xx)

Scott G

unread,
Jul 3, 2009, 11:43:07 AM7/3/09
to ReposStyle
Which mean you are not allowing anonymous read's.

phanorcoll

unread,
Jul 3, 2009, 11:53:15 AM7/3/09
to ReposStyle
no i get

svn: Can't open file '/root/.subversion/servers': Permission denied

Scott Grayban

unread,
Jul 3, 2009, 1:59:12 PM7/3/09
to repos...@googlegroups.com
Well that's pretty obvious then.

Wrong permissions set so check that. Actually accessing anything that is under /root is generally forbidden as /root is set 750 for security reasons.

Scott

phanorcoll said the following on 07/03/2009 08:53 AM:

Staffan

unread,
Jul 4, 2009, 2:18:58 AM7/4/09
to repos...@googlegroups.com
I agree it must be a permission problem. The subversion client looks
for configuration in [current user]/.subversion folder. For some
reason your web server's user has root as home dir but it does not
have read permission.

I suggest you edit repos-web/open/log/index.php and add a
"--config-dir" parameter to the subversion command.

/Staffan

Phanor Coll

unread,
Jul 13, 2009, 3:04:21 PM7/13/09
to repos...@googlegroups.com

hi..no i get the following

svn: When specifying working copy paths, only one target may be given.

i modify repos-web/open/log/index.php adding --config-dir

..im new to svn so please..can you be more specific

thanks
--
                                                     Phanor Coll

Staffan

unread,
Jul 14, 2009, 4:19:10 PM7/14/09
to repos...@googlegroups.com
The error you got might be caused by wrong parameter order.

Try something like this (the first row is there already):
$cmd = $svn.' log --xml --verbose --incremental --non-interactive';
$cmd .= ' --config-dir "/tmp/repos-web-config-dir"; // added because
default location is not readable for web server user
...

Here's the documentation for the extra svn command options:
http://svnbook.red-bean.com/nightly/en/svn.ref.svn.html#svn.ref.svn.sw

/Staffan

Phanor Coll

unread,
Jul 15, 2009, 10:28:36 AM7/15/09
to repos...@googlegroups.com
Staffan wrote:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "ReposStyle" group.
To post to this group, send email to repos...@googlegroups.com
To unsubscribe from this group, send email to reposstyle+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/reposstyle?hl=en
-~----------~----~----~----~------~----~------~--~---

  
hi,

now i get

svn: PROPFIND request failed on '/proyectos/trunk/index.php'
svn: PROPFIND of '/proyectos/trunk/index.php': authorization failed

i have configured restricted access to the repository, I access with my username and password, but when i try to view the history I get that error.

This is my subversion.conf file

<Location /proyectos>
   DAV svn
   SVNParentPath /var/www/repositorio/proyectos
   SVNListParentPath on
   SVNIndexXSLT "/repos-web/view/repos.xsl"

      AuthType Basic
      AuthName "Repositorio Proyectos"
      AuthUserFile /xxx/xxx/passwd/clavessvn
      Require valid-user

</Location>

thanks
--
Phanor Coll
Consultor IT
Merida, Venezuela
+58-424-7739646

Comunicate conmigo
Skype: phanorcoll

Comunicate conmigo
Gmail Talk: phanorcoll

Staffan

unread,
Jul 15, 2009, 11:36:05 AM7/15/09
to repos...@googlegroups.com
On Wed, Jul 15, 2009 at 4:28 PM, Phanor Coll<phano...@gmail.com> wrote:
> Staffan wrote:
>
> The error you got might be caused by wrong parameter order.
>
> Try something like this (the first row is there already):
> $cmd = $svn.' log --xml --verbose --incremental --non-interactive';
> $cmd .= ' --config-dir "/tmp/repos-web-config-dir"; // added because
> default location is not readable for web server user
> ...
>
> Here's the documentation for the extra svn command options:
> http://svnbook.red-bean.com/nightly/en/svn.ref.svn.html#svn.ref.svn.sw
>
> /Staffan
>
>
...

>
> hi,
>
> now i get
>
> svn: PROPFIND request failed on '/proyectos/trunk/index.php'
> svn: PROPFIND of '/proyectos/trunk/index.php': authorization failed
>
> i have configured restricted access to the repository, I access with my
> username and password, but when i try to view the history I get that error.
>
> This is my subversion.conf file
>
> <Location /proyectos>
>    DAV svn
>    SVNParentPath /var/www/repositorio/proyectos
>    SVNListParentPath on
>    SVNIndexXSLT "/repos-web/view/repos.xsl"
>
>       AuthType Basic
>       AuthName "Repositorio Proyectos"
>       AuthUserFile /xxx/xxx/passwd/clavessvn
>       Require valid-user
>
> </Location>
>

That's good -- the svn command works. The log viewer does not know
credentials. You could change the $repo variable to use the local url
(file:///var/www/repositorio/proyectos). This will bypass security,
but can only be used to see logs. There are other options that involve
--username and --password parameters in the svn command and access
control in apache, depending on your requirements.

/Staffan

Phanor Coll

unread,
Jul 15, 2009, 11:57:46 AM7/15/09
to repos...@googlegroups.com
Staffan wrote:
). This will bypass security,
but can only be used to see logs. There are other options that involve
--username and --password parameters in the svn command and access
control in apache, depending on your requirements.

/Staffan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "ReposStyle" group.
To post to this group, send email to repos...@googlegroups.com
To unsubscribe from this group, send email to reposstyle+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/reposstyle?hl=en
-~----------~----~----~----~------~----~------~--~---

  

I changed the $repo variable to use the local url (file:///var/www/repositorio/proyectos) , I get a blank page..no errors. nothing, then I tried setting the username and password

$cmd .= ' --username XXX --password XXX'; and I get this


svn: PROPFIND request failed on '/proyectos/trunk/index.php'
svn: Could not open the requested SVN filesystem..

Staffan

unread,
Jul 15, 2009, 1:02:22 PM7/15/09
to repos...@googlegroups.com
> I changed the $repo variable to use the local url
> (file:///var/www/repositorio/proyectos) , I get a blank page..no errors.
> nothing, then I tried setting the username and password
>
> $cmd .= ' --username XXX --password XXX'; and I get this
>
> svn: PROPFIND request failed on '/proyectos/trunk/index.php'
> svn: Could not open the requested SVN filesystem..
>

Strange. I notice in your config you don't use an AuthzSVNAccessFile
so for your setup a local URL combined with
<Location /repos-web>
AuthType Basic
AuthName "Repositorio Proyectos"
AuthUserFile /xxx/xxx/passwd/clavessvn
Require valid-user
</Location>
(or an equivalent <Directory>) should give you adequate security.

No need for the --username then but I don't know why you get an empty
page. If you "view source" is there any XML? Can you echo the command
in the php and try to run it in a terminal?

/Staffan

Staffan

unread,
Jul 15, 2009, 1:41:43 PM7/15/09
to repos...@googlegroups.com
One more thought: There might be PHP errors that you don't see unless
you've set "display_errors = On" in your php.ini. If you have
"log_errors = On" you can see them in the apache log instead.

/Staffan

Phanor Coll

unread,
Jul 15, 2009, 3:07:50 PM7/15/09
to repos...@googlegroups.com
Staffan wrote:
One more thought: There might be PHP errors that you don't see unless
you've set "display_errors = On" in your php.ini. If you have
"log_errors = On" you can see them in the apache log instead.

/Staffan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "ReposStyle" group.
To post to this group, send email to repos...@googlegroups.com
To unsubscribe from this group, send email to reposstyle+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/reposstyle?hl=en
-~----------~----~----~----~------~----~------~--~---

  

when i get the blank page..viewing the source i get

<html><head></head><body></body></html>

nothing else

Staffan

unread,
Jul 15, 2009, 3:15:03 PM7/15/09
to repos...@googlegroups.com
> when i get the blank page..viewing the source i get
>
> <html><head></head><body></body></html>
>
> nothing else
>
>

That's nothing that the log viewer code or svn could send, and it can
not be an XSLT problem because when repos style runs you see xml in
view source. Did you try display_errors = On in php.ini? Did you try
to echo the command and execute it manually?

/Staffan
Reply all
Reply to author
Forward
0 new messages