Diff always gives an internal server error

Bug #493929 reported by Matt Giuca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IVLE
Fix Released
High
William Grant

Bug Description

I am always seeing this, on a URL such as http://ivle.localhost/diff/studentb/ivle-102/group1/hello.py?r=3&r=2.

IVLE Internal Server Error
<snip>
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/ivle/dispatch/__init__.py", line 161, in handler
    view.render(req)
  File "/usr/local/lib/python2.6/dist-packages/ivle/webapp/base/xhtml.py", line 68, in render
    self.populate(req, viewctx)
  File "/usr/local/lib/python2.6/dist-packages/ivle/webapp/filesystem/diff/__init__.py", line 70, in populate
    response['error'])
AssertionError: Unknown error from diffservice: Can't open '/tmp/svndiff/tempfile.tmp': No such file or directory (code 2)

Could be related to #456913.

Tags: subversion
Revision history for this message
William Grant (wgrant) wrote : Re: [Bug 493929] [NEW] Diff always gives an internal server error

On Tue, 2009-12-08 at 07:12 +0000, Matt Giuca wrote:
> Public bug reported:
>
> I am always seeing this, on a URL such as
> http://ivle.localhost/diff/studentb/ivle-102/group1/hello.py?r=3&r=2.
>
> IVLE Internal Server Error
> <snip>
> Traceback (most recent call last):
> File "/usr/local/lib/python2.6/dist-packages/ivle/dispatch/__init__.py", line 161, in handler
> view.render(req)
> File "/usr/local/lib/python2.6/dist-packages/ivle/webapp/base/xhtml.py", line 68, in render
> self.populate(req, viewctx)
> File "/usr/local/lib/python2.6/dist-packages/ivle/webapp/filesystem/diff/__init__.py", line 70, in populate
> response['error']
> AssertionError: Unknown error from diffservice: Can't open '/tmp/svndiff/tempfile.tmp': No such file or directory (code 2)
>
> Could be related to #456913.
>
> ** Affects: ivle
> Importance: High
> Status: New

I saw this last week too, but assumed it to be a local problem.

 status triaged
 assignee wgrant

Changed in ivle:
assignee: nobody → William Grant (wgrant)
status: New → Triaged
Revision history for this message
William Grant (wgrant) wrote :

Gnargh. I hate you, Subversion. It looks like the diff() tempfile
behaviour has changed in Karmic.

The following diff solves it for Karmic, but I doubt it will work on
Jaunty or earlier. Need to investigate.

=== modified file 'services/diffservice'
--- services/diffservice 2009-12-02 01:25:02 +0000
+++ services/diffservice 2009-12-08 08:41:59 +0000
@@ -48,7 +48,7 @@
     svnclient = pysvn.Client()
     svnclient.exception_style = 1
     diff = svnclient.diff
- diff_text = diff( '/tmp/svndiff',
+ diff_text = diff( '/tmp',
         os.path.join('/home', sys.argv[1]),
         revision1=revs[0],
         revision2=revs[1]

William Grant (wgrant)
Changed in ivle:
status: Triaged → In Progress
Revision history for this message
William Grant (wgrant) wrote :

Fixed in trunk r1476.

Changed in ivle:
status: In Progress → Fix Committed
William Grant (wgrant)
Changed in ivle:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.