[viewvc-dev] Bug with viewsvn template and version 1.1.13
Oliver Schneider <[email protected]> Tue, 22 May 2012 08:00:23 -0700 (PDT)
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.devel |
|---|---|
| Message-ID | <2104731036.10838.1337698823303.JavaMail.httpd__6220.03724934093$1337698829$gmane$org@localhost> |
I've been migrating a ViewVC installation that in the past used:
template_dir = templates-contrib/viewsvn/templates
to a newer Linux distro, Python and Apache version and upgraded ViewVC in the process. Ever since, I received the following error when trying to look at CVS repos (but not SVN repos, which continued to work fine):
--------------------------
An Exception Has Occurred
Python Traceback
Traceback (most recent call last):
File "/vhosts/viewvc/lib/viewvc.py", line 4537, in main
request.run_viewvc()
File "/vhosts/viewvc/lib/viewvc.py", line 394, in run_viewvc
self.view_func(self)
File "/vhosts/viewvc/lib/viewvc.py", line 2280, in view_directory
generate_page(request, "directory", data)
File "/vhosts/viewvc/lib/viewvc.py", line 931, in generate_page
template.generate(server_fp, data)
File "/vhosts/viewvc/lib/ezt.py", line 329, in generate
self._execute(self.program, ctx)
File "/vhosts/viewvc/lib/ezt.py", line 458, in _execute
step[0](step[1], ctx)
File "/vhosts/viewvc/lib/ezt.py", line 511, in _cmd_is
self._do_if(value, t_section, f_section, ctx)
File "/vhosts/viewvc/lib/ezt.py", line 522, in _do_if
self._execute(section, ctx)
File "/vhosts/viewvc/lib/ezt.py", line 458, in _execute
step[0](step[1], ctx)
File "/vhosts/viewvc/lib/ezt.py", line 487, in _cmd_if_any
if _get_value(valref, ctx):
File "/vhosts/viewvc/lib/ezt.py", line 620, in _get_value
raise UnknownReference(refname)
UnknownReference: roots
--------------------------
After some tinkering, I figured I should try to get my configuration back to the default as much as possible and started by what I suspected to be the problem (considering ezt.py being the "cause"): the templates.
So I commented out my template_dir line and lo and behold, it started to work again for both CVS _and_ SVN repos. So for now I'll leave it at that, but I presume there is an error in the template and I'll try to make some time to track it down and send a patch.
// Oliver
PS: best viewed with fixed width fonts ...
------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4251&dsMessageId=2964322
To unsubscribe from this discussion, e-mail: [[email protected]].