Package: viewvc
Version: 1.1.5-1.4
Severity: important
Dear Maintainer,
* What led up to the situation?
New install of Wheezy/svn/viewvc, qualification of viewvc, display
changeset
* What exactly did you do (or not do) that was effective (or
ineffective)?
Edited and compiled /usr/lib/viewvc/lib/vclib/svn/svn_repos.py
* What was the outcome of this action?
Bug no longer ocurs
* What outcome did you expect instead?
-- System Information:
Debian Release: 7.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages viewvc depends on:
ii python 2.7.3-4
ii python-subversion 1.6.17dfsg-4+deb7u2
ii python-support 1.0.15
ii rcs 5.8.1-1
ii subversion 1.6.17dfsg-4+deb7u2
Versions of packages viewvc recommends:
ii apache2 2.2.22-13
ii apache2-mpm-worker [httpd-cgi] 2.2.22-13
ii python-pygments 1.5+dfsg-1
Versions of packages viewvc suggests:
pn cvsgraph <none>
pn libapache2-mod-python <none>
ii mime-support 3.52-1
pn python-tk <none>
pn viewvc-query <none>
-- Configuration Files:
/etc/viewvc/viewvc.conf changed:
[general]
root_parents = /var/lib/svn : svn
[utilities]
[options]
template_dir = /etc/viewvc/templates
[templates]
[cvsdb]
[vhosts]
[authz-forbidden]
[authz-forbiddenre]
[authz-svnauthz]
-- no debconf information
This looks similar to Bug #683188, but the fix for this is applied in my
version of Wheezy.
An Exception Has Occurred
Python Traceback
Traceback (most recent call last):
File "/usr/lib/viewvc/lib/viewvc.py", line 4322, in main
request.run_viewvc()
File "/usr/lib/viewvc/lib/viewvc.py", line 397, in run_viewvc
self.view_func(self)
File "/usr/lib/viewvc/lib/viewvc.py", line 3141, in view_diff
fp = request.repos.rawdiff(p1, rev1, p2, rev2, diff_type, diff_options)
File "/usr/lib/viewvc/lib/vclib/svn/svn_repos.py", line 710, in rawdiff
temp1 = temp_checkout(self, p1, r1)
File "/usr/lib/viewvc/lib/vclib/svn/svn_repos.py", line 254, in temp_checkout
chunk = core.svn_stream_read(stream, core.SVN_STREAM_CHUNK_SIZE)
File "/usr/lib/pymodules/python2.7/libsvn/core.py", line 4801, in
svn_stream_read
return _core.svn_stream_read(*args)
TypeError: expecting an integer for the buffer size
editing
File "/usr/lib/viewvc/lib/vclib/svn/svn_repos.py", line 254, in temp_checkout
chunk = core.svn_stream_read(stream, core.SVN_STREAM_CHUNK_SIZE)
to
chunk = core.svn_stream_read(stream, int(core.SVN_STREAM_CHUNK_SIZE))
makes it work as desired.