Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 2561 by csal...@hotmail.com: API Error 105
http://code.google.com/p/reviewboard/issues/detail?id=2561
* NOTE: Do not post confidential information in this bug report. *
* If you need immediate support, please contact *
* reviewbo...@googlegroups.com *
What version are you running? 1.6.5
What's the URL of the page containing the problem?
http://www.rbdemo.com
What steps will reproduce the problem?
1.post-review from Windows system
2.
3.
What is the expected output? What do you see instead? A valid post-review.
Got API Error 105 (HTTP code 400): One or more fields had errors
Error data: {u'fields': {u'path': [u'list index out of range']},
u'stat': u'fail', u'err': {u'msg': u'One or more fields had errors',
u'code': 105}}
Error uploading diff
The generated diff file was empty. This usually means no files were
modified in this change.
There were diffs generated.
ReviewBoard Server log:
2012-04-02 10:14:27,554 - DEBUG - DiffParser.parse: Beginning parse of
diff, size = 622
2012-04-02 10:14:27,555 - ERROR - Error uploading new diff: list index out
of range
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.5-py2.7.egg/reviewboard/webapi/resources.py",
line 1509, in create
request.FILES.get('parent_diff_path'))
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.5-py2.7.egg/reviewboard/reviews/forms.py",
line 286, in create
history)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.5-py2.7.egg/reviewboard/diffviewer/forms.py",
line 63, in create
diff_file, basedir, check_existance=(not parent_diff_file)))
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.5-py2.7.egg/reviewboard/diffviewer/forms.py",
line 136, in _process_files
for f in tool.get_parser(file.read()).parse():
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.5-py2.7.egg/reviewboard/diffviewer/parser.py",
line 49, in parse
next_linenum, new_file = self.parse_change_header(i)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.5-py2.7.egg/reviewboard/diffviewer/parser.py",
line 74, in parse_change_header
linenum = self.parse_special_header(linenum, info)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.5-py2.7.egg/reviewboard/scmtools/svn.py",
line 407, in parse_special_header
linenum = super(SVNDiffParser, self).parse_special_header(linenum, info)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.5-py2.7.egg/reviewboard/diffviewer/parser.py",
line 125, in parse_special_header
info['index'] = self.lines[linenum].split(None, 2)[1]
IndexError: list index out of range
What operating system are you using? Win 7
What browser? ie9
Please provide any additional information below.
The post-review works from a Linux system but does not work from my Windows
system.
--
You received this message because you are subscribed to the Google Groups
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/reviewboard-issues?hl=en.