[viewvc-dev] authzfile configuration to match multiple SVN repositories

Sebastien VARRETTE <[email protected]> Tue, 3 Feb 2009 18:13:14 +0100
Newsgroups gmane.comp.version-control.cvs.viewcvs.devel
Message-ID <7A3C26E2-0C02-4938-8C86-53938B31426F__11332.0293291055$1233681591$gmane$org@uni.lu>
Hi everybody,

I wanted to upgrade viewvc on our gforge platform to 1.1.0-beta1 in  
order to make use of authz files.
The various repositories being located in /svn, i configured the  
authzfile variable of viewvc.conf to:

	authzfile = /svn/%(rootname)/conf/authz

(I found en entry in the mailing list claiming this substitution would  
be possible)
which lead to teh following error (when accessing to the page:
https://gforge.example.org/plugins/scmsvn/viewcvs.php/Script/?root=myrepository 
  )

An Exception Has OccurredPython Traceback

Traceback (most recent call last):
   File "/opt/viewvc-1.1.0-beta1/lib/viewvc.py", line 4007, in main  
request.run_viewvc()
    File "/opt/viewvc-1.1.0-beta1/lib/viewvc.py", line 238, in  
run_viewvc self.auth = setup_authorizer(cfg, self.username,  
self.rootname)
    File "/opt/viewvc-1.1.0-beta1/lib/viewvc.py", line 811, in  
setup_authorizer params =  
cfg.get_authorizer_params(cfg.options.authorizer, rootname)
    File "/opt/viewvc-1.1.0-beta1/lib/config.py", line 183, in  
get_authorizer_params for key, value in  
self._get_parser_items(self.parser, section):
    File "/opt/viewvc-1.1.0-beta1/lib/config.py", line 168, in  
_get_parser_items return self.parser.items(section) File  
"ConfigParser.py", line 556, in items return [(option,  
self._interpolate(section, option, d[option], d))
    File "ConfigParser.py", line 570, in _interpolate raise  
InterpolationMissingOptionError( InterpolationMissingOptionError: Bad  
value substitution:
	section: [authz-svnauthz]
	option : authzfile
	key : rootname
	rawval : /svn/%(rootname)/conf/authz

Any hint ?

(Citing http://markmail.org/search/?q=viewvc+authzfile#query:viewvc 
%20authzfile+page:1+mid:kdbzum7tnstsobau+state:results
I would expect viewcv to make the substitution %(rootname) ->  
myrepository to load the authz file
/svn/myrepository/conf/authz

Configuration:
- Python 2.4.4
- ViewCV 1.1.0-beta1 (from the official tarball of tigris)

Best regards;

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4251&dsMessageId=1097680

To unsubscribe from this discussion, e-mail: [[email protected]].