721: Diff Viewer SCMError - callback_get_login required

python.te*********@gmai***** (Google Code) (Is this you? Claim this profile.)
Feb. 10, 2009
What's the URL of the page containing the problem?

http://example.com/r/5/diff/#index_header

What steps will reproduce the problem?
1. Add new review requests
2. Add a diff file (svn diff) 
3. Click on View Diff in Review Requests page.

What is the expected output? What do you see instead?

I get the following error,

callback_get_login required

Traceback (most recent call last):
  File "/home/parthan/reviewboard/diffviewer/views.py", line 86, in view_diff
    files = get_diff_files(diffset, None, interdiffset, highlighting)
  File "/home/parthan/reviewboard/diffviewer/diffutils.py", line 654, in
get_diff_files
    enable_syntax_highlighting)
  File "/home/parthan/reviewboard/diffviewer/diffutils.py", line 573, in
generate_files
    large_data=True)
  File "/home/parthan/reviewboard/djblets/util/misc.py", line 142, in
cache_memoize
    data = lookup_callable()
  File "/home/parthan/reviewboard/diffviewer/diffutils.py", line 572, in
<lambda>
    enable_syntax_highlighting),
  File "/home/parthan/reviewboard/diffviewer/diffutils.py", line 338, in
get_chunks
    old = get_original_file(filediff)
  File "/home/parthan/reviewboard/diffviewer/diffutils.py", line 245, in
get_original_file
    large_data=True)[0]
  File "/home/parthan/reviewboard/djblets/util/misc.py", line 142, in
cache_memoize
    data = lookup_callable()
  File "/home/parthan/reviewboard/diffviewer/diffutils.py", line 244, in
<lambda>
    data = cache_memoize(key, lambda: [fetch_file(file, revision)],
  File "/home/parthan/reviewboard/diffviewer/diffutils.py", line 224, in
fetch_file
    data = tool.get_file(file, revision)
  File "/home/parthan/reviewboard/scmtools/svn.py", line 115, in get_file
    raise SCMError(e)
SCMError: callback_get_login required


What operating system are you using? What browser?

Linux, Firefox3.0

Please provide any additional information below.

Am attaching the diff file I use, taken from the root directory of my svn
repository
Index: trunk/troika/templates/microinsurance_printproposal.mako
===================================================================
--- trunk/troika/templates/microinsurance_printproposal.mako	(revision 728)
+++ trunk/troika/templates/microinsurance_printproposal.mako	(working copy)
@@ -1,3 +1,8 @@
+<link href="/micro_insurance.css" type="text/css" rel="stylesheet">
+<div style="width:100px; float:right:">
+	<a href="javascript:window.print()">Print this policy</a>
+</div>
+<div class="wrapper">
 <div>
 	<div style="width:20%; float:left;">
 		<img src="/lic_logo.jpg"></img>
@@ -2,216 +7,595 @@
 	</div>
-	<div style="width:79%; float:right;">
-		${"Life Insurance Corporation of India"}
-		${_("Life Insurance Corporation of India")}
-		
-		${"For Micro Insurance Policy"}
-		${_("For Micro Insurance Policy")}
-		
-		${"Inward No."}
-		${_("Inward No.")}
-		${"Divisional Office"}
-		${_("Divisional Office")}
-		${"Branch Office"}
-		${_("Branch Office")}
+	<div style
chipx86
#1 chipx86
It sounds like the server is expecting login info in order to view anything. Do you
have this configured in your repository entry in the database?
  • +NeedInfo
  • +Component-SCMTools
  • +Diff Viewer SCMError - callback_get_login required
david
#2 david
Assuming that this was the problem, since no additional information was provided. If
this is not the case, please add a comment and we'll reopen the issue.
  • -NeedInfo
    +Incomplete
#3 dgf****@gmai***** (Google Code) (Is this you? Claim this profile.)
This error also occurs if you HAVE entered login information, and then it starts
failing for some reason (expired password, in my case) -- the callback_get_login is
pretty opaque to me as an idiot administrator, so maybe it just needs a better message.
chipx86
#4 chipx86
The error is definitely opaque, and not sent by us. Do you know what version of PySVN
you have?
  • -Incomplete
    +NeedInfo
david
#5 david
Fixed in SVN r1771.
  • -NeedInfo
    +Fixed