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

Re: svn commit: r12464 - in trunk/notes: . locking

From: John Szakmeister <john_at_szakmeister.net>
Date: 2004-12-21 09:50:03 CET

sussman@tigris.org wrote:
> Author: sussman
> Date: Mon Dec 20 17:10:56 2004
> New Revision: 12464
>
> Modified:
> trunk/notes/authz_policy.txt
> trunk/notes/locking/ra_dav_strategy.txt

Hmm... it says you modified the above two files...

> Log:
> Locking branch: implement RA->lock() and RA->unlock() in ra_dav.
>
>
> * mod_dav_svn/lock.c
> (struct dav_lockdb_private): remove 'want_creationdate' field.
> (dav_svn_open_lockdb): stop looking for the 'want_creationdate'
> header option, we send it unconditionally.
>
> * include/svn_dav.h
> (SVN_DAV_OPTION_WANT_CREATIONDATE): remove constant.

but here, it says you modified two different files. :-)

>
> Modified: trunk/notes/authz_policy.txt
> Url: http://svn.collab.net/viewcvs/svn/trunk/notes/authz_policy.txt?view=diff&rev=12464&p1=trunk/notes/authz_policy.txt&r1=12463&p2=trunk/notes/authz_policy.txt&r2=12464
> ==============================================================================
> --- trunk/notes/authz_policy.txt (original)
> +++ trunk/notes/authz_policy.txt Mon Dec 20 17:10:56 2004
> @@ -126,6 +126,13 @@
> the working copy, but the .svn/entries file still contains an
> entry for it (marked 'absent').
>
> +7. LOCKING
> +
> + If a client attempts to lock or unlock an unreadable path, the
> + command will fail. If a client attempts to retrieve a list of all
> + locks "below" a directory, only readable paths will ever be
> + returned; unreadable locked paths remain unknown.
> +
>
> ============================================================================
> HOW TO IMPLEMENT PATH-BASED AUTHZ
> @@ -143,6 +150,7 @@
> svn_repos_get_file_revs()
> svn_repos_rev_prop()
> svn_repos_rev_proplist()
> + svn_repos_fs_get_locks()
>
> 2. Manually implement read-authz for incoming network requests that
> represent calls to:
> @@ -150,6 +158,10 @@
> RA->get_file()
> RA->get_dir()
> RA->check_path()
> + RA->lock()
> + RA->unlock()
> + RA->get_lock()
> + RA->get_locks()
>
> (These concepts aren't wrapped by libsvn_repos becauseit's just
> as easy to call an authz func directly on a single path, rather
>
> Modified: trunk/notes/locking/ra_dav_strategy.txt
> Url: http://svn.collab.net/viewcvs/svn/trunk/notes/locking/ra_dav_strategy.txt?view=diff&rev=12464&p1=trunk/notes/locking/ra_dav_strategy.txt&r1=12463&p2=trunk/notes/locking/ra_dav_strategy.txt&r2=12464
> ==============================================================================
> --- trunk/notes/locking/ra_dav_strategy.txt (original)
> +++ trunk/notes/locking/ra_dav_strategy.txt Mon Dec 20 17:10:56 2004
> @@ -8,7 +8,6 @@
>
> - force flag
> - working-revnum (for OOD check)
> - - want-creationdate
>
> * mod_dav_svn should call authz_read func on path, if it exists.
>
> @@ -32,6 +31,7 @@
>
> * what if older server? just returns '405 Method not Allowed'.
>
> +----
>
> RA->get_lock()
>
> @@ -46,7 +46,7 @@
> a standard property value that describes almost all the
> svn_lock_t fields.
>
> - - add one custom response header: creation-date
> + - add one custom response header: X-SVN-creation-date
>
> * what if older server? just returns '404 Not Found'.

-John

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 21 09:52:17 2004

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.