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

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: Fri, 17 Aug 2012 12:14:31 -0400

Well, I just ran into my first hurdle: the current svnserve protocol
demands that capabilities in the standard capabilities string list be of the
protocol data class "word", which is limited to strings with letters,
numbers, and hyphens only. I think that pretty much rules out having this
functionality "just work" for existing servers in the wild -- admins would
need 1.8+ servers.

But if we need a new server + protocol changes to accomplish this anyway,
then what changes to make?

 1. change the definition of "word" to include more characters? Feels
    wrong. -1

 2. introduce a new protocol data type that covers the character classes we
    need, and change the protocol to expect that primitive type instead of
    "word" for capabilities? Hrm... feels like smashing a fly with a
    Buick. -0

 3. just use the "string" type for capabilities, but with server-enforced
    additional formatting constraints. +0/1? (But is this meaningfully
    different from suggestion #2?)

 4. something else?

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Enterprise Cloud Development

Received on 2012-08-17 18:15:31 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.