1599: ClearCase do_diff return IOException for /tmp/8391ce28678b43353b375e1c06943d9d when file doesn't exists

Jan.Ko*******@gmai***** (Google Code) (Is this you? Claim this profile.)
April 4, 2011
What version are you running?
Bleeding edge

What's the URL of the page containing the problem?
Script rung

What steps will reproduce the problem?
1. Run post-review with --revision-range with paths which doesn't exists in
view

What is the expected output? What do you see instead?
Some human readable error like "File "blabla" doesn't exists"

What operating system are you using? What browser?
Unix/Linux

Please provide any additional information below.
#1 Jan.Ko*******@gmai***** (Google Code) (Is this you? Claim this profile.)
Title should be: UnboundLocalError when file problem
#2 Jan.Ko*******@gmai***** (Google Code) (Is this you? Claim this profile.)
Example output of error
  • +
    Mod_python error: "PythonHandler mod_python.publisher"
    Traceback (most recent call last):
      File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in Han
    dlerDispatch
        result = object(req)
      File "/usr/lib/python2.4/site-packages/mod_python/publisher.py", line 136, in
    handler
        result = util.apply_fs_data(object, req.form, req=req)
      File "/usr/lib/python2.4/site-packages/mod_python/util.py", line 361, in apply
    _fs_data
        return object(**args)
      File "/user/gkbldccg/apache/www/reviewrobot/index.py", line 170, in index
        diff = tool.do_diff(changeset)[0]
      File "/user/gkbldccg/system/intel/rbtools/rbtools/postreview.py", line 1090, i
    n do_diff
        fd = open(cpath.normpath(fn))
    UnboundLocalError: local variable 'fn' referenced before assignment
david
#3 david
  • +Component-SCMTools
david
#4 david
Fixed in reviewboard 7553ec1 and rbtools 47fb2ce. Thanks!
  • +Fixed