Discussions  >  CollabNet Subversion Admins  >  Re: svn log problem, "svn: Item is not readable"

Back to topic list

Re: svn log problem, "svn: Item is not readable"

Author cmpilato (OCN Member)
Full name C. Michael Pilato
Date 2012-02-08 07:24:53 PST
Message I'm trying to better understand your usage scenario and your suggestion
below. It's a bit confusing because there are a couple of different sets of
"paths" to talk about when it comes to the 'log' command:

1. The paths on which the log request is made. For example, if I run:

       $ svn log ^/trunk src/notes lib/headers

    then, server-side, the log target paths are "/trunk/src/notes" and
    "/trunk/lib/headers".

2. The paths returned and printed by the log command when -v is used.

Are you running 'svn log' with multiple targets at once? If not, what is
the typical invocation of 'svn log' for your users, and what can be
generally said about their access rights ("can read certain trees underneath
the root directory, but not others and not the root itself", for example).


On 02/08/2012 06:24 AM, Pawel Seledec wrote:
> I found on network some solutions for this problem.
> But all are based on the change in authz file like this:
>
> [/]
> * = r
>
> This allows everyone to read all the modules on the server. But in my company this is not permitted.
>
> So I found another solution.
> Authentication method in the function log_cmd is wrong (file subversion/svnserve/serve.c).
> End of the loop which adds paths looks like this:
>
> APR_ARRAY_PUSH(full_paths, const char *) = full_path;
> }
> SVN_ERR(trivial_auth​_request(conn, pool, b));
>
> Command trivial_auth_request causes the error "svn: Item is not readable" when rights on [/] are: * =
>
> After changing the code as shown below, svn log operates correctly.
>
> /* Check authorizations */
> SVN_ERR(must_have_access(conn, pool, b, svn_authz_read,
> full_path, FALSE));
> APR_ARRAY_PUSH(full_paths, const char *) = full_path;
> }
> // SVN_ERR(trivial_auth​_request(conn, pool, b));
>
> In this case SVN checks the rights to each path individually.
> My solution works on the server version 1.6.17
> A similar code is in version 1.7.2.
>
> I hope that this fix will be added to the new server version.
Attachments

« Previous message in topic | 2 of 4 | Next message in topic »

Messages

Show all messages in topic

svn log problem, "svn: Item is not readable" pawelsel (OCN Member) Pawel Seledec 2012-02-08 03:24:46 PST
     Re: svn log problem, "svn: Item is not readable" cmpilato (OCN Member) C. Michael Pilato 2012-02-08 07:24:53 PST
         RE: Re: svn log problem, "svn: Item is not readable" pawelsel (OCN Member) Pawel Seledec 2012-02-13 04:58:24 PST
             RE: Re: svn log problem, "svn: Item is not readable" prsco1014 (OCN Member) hamidreza shargh 2012-03-07 12:14:17 PST
Messages per page: