Re: [Issue 4124] New - Give servers sufficient means to disallow commits from clients based on version numbers
From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Mon, 20 Aug 2012 10:36:35 -0400
On 08/17/2012 12:14 PM, C. Michael Pilato wrote:
Okay, how about an altogether different approach that just occurred to me.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
What if instead of the capabilities mechanism, we use txnprops?
The start-commit hook wrapper logic already has access to a set of txnprops
So, picture this crazyiness:
1. The RA layer drops the client version info we've been talking about into
2. At this point we either:
a. serialize the revprops-to-be and hand them off to the start-commit
b. change the nature of the start-commit hook such that it runs
3. After successful completion of the start-commit hook, we can then either:
a. remove the magic txnprops, or
b. just leave them to serve as a record of the client information
4. As a bonus side-effect, users can now deny commits with substandard log
It's Monday. My ceiling was leaking water over the weekend. I have two
Discuss.
-- C-Mike
[1] mod_dav_svn is an exception here, because the log message is
-- C. Michael Pilato <cmpilato_at_collab.net> CollabNet <> www.collab.net <> Enterprise Cloud Development
|
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.