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

Re: Merkle trees in svn [was: Quick question about the sha1-checksum for directories in svn.]

From: Julian Foad <julianfoad_at_apache.org>
Date: Thu, 5 Oct 2017 15:46:49 +0100

Branko Čibej wrote:
> On 05.10.2017 16:19, Paul Hammant wrote:
>> Not that my vote counts for much, but I'd prefer w/o props, obeying
>> read permissions.
>
> "Obeying read permissions" means that the directory hashes would have to
> be computed dynamically for each user.

Correct, but let's not imply that's a showstopper.

Calculation of a directory's hash would have to happen for each
directory where the user has mixed access to the immediate children, and
for all parents of such a directory up to the root. For any subtree
where the user has full access, we can use a stored value.

That means in typical authz patterns (a few subtrees excluded) there is
very little calculation required, as long as the authz subsystem can
efficiently tell us whether the user has full or mixed or no access to a
given subtree.

- Julian
Received on 2017-10-05 16:46:55 CEST

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.