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

Re: Support character classes in glob authz rules

From: Michael Pilato <cmpilato_at_collab.net>
Date: Mon, 3 Dec 2018 15:07:11 +0000

On 12/3/18 3:15 AM, Julian Foad wrote:
> It makes me uncomfortable to depart from standard parsing. What if
> users are relying on Python ConfigParser or other compatible parsing
> as part of their Subversion authz infrastructure?

We needn't keep this hypothetical. ViewVC is using (a slightly
modified[*]) Python ConfigParser in this way.

-- Mike

[*] By default, ConfigParser (well, really the RawConfigParser it
subclasses) lowercases option names, which can cause username/group
matching to fail. So ViewVC's code replaces the optionxform method of
ConfigParser with a noop lambda function. (See
https://docs.python.org/2/library/configparser.html#ConfigParser.RawConfigParser.optionxform
for official docs.)
Received on 2018-12-03 16:13:51 CET

This is an archived mail posted to the Subversion Dev mailing list.