Closed
Bug 1163714
Opened 10 years ago
Closed 10 years ago
Unhelpful "API Error 105" given when trying to push a commit with just an empty file to reviewboard
Categories
(MozReview Graveyard :: General, defect, P2)
MozReview Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mcomella, Assigned: smacleod)
References
Details
Attachments
(4 files)
Specifically:
abort: reviewboard error: "One or more fields had errors (HTTP 400, API Error 105)". please try submitting the review again. if that doesn't work, you've likely encountered a bug.
A google search reveals this is invalid form data [1]. However, I can't determine what is invalid and if it's something I'm doing or something the reviewboard extension/server is doing. I updated my version-control-tools repository to the latest version.
Commit data to follow.
[1]: https://www.reviewboard.org/docs/manual/1.5/webapi/2.0/errors/105-invalid-form-data/
| Reporter | ||
Comment 1•10 years ago
|
||
Note that I'm only trying to push the top two commits (i.e. I'm trying to avoid pushing nalexander's work in bug 1162191 and the two hacks I made on top of it).
| Reporter | ||
Comment 2•10 years ago
|
||
This patch is to work around the bug where I can't push a single draft() changeset to reviewboard.
| Reporter | ||
Comment 3•10 years ago
|
||
The commit with the changes-to-be-reviewed in it.
Note that pushing this with the commits I didn't want to have reviewed works.
| Reporter | ||
Comment 4•10 years ago
|
||
(In reply to Michael Comella (:mcomella) from comment #3)
> Note that pushing this with the commits I didn't want to have reviewed works.
But adding the commit from comment 2 in causes an `hg push review` to fail in the same way.
| Reporter | ||
Comment 5•10 years ago
|
||
Found the issue - I can't push a commit with just an empty file. I'm not sure if this applies if there is an empty file in addition to other changes within a commit, or if I delete the contents of a file to make it empty (i.e. I just added the file).
Summary: Unhelpful API 105 error given when trying to push to reviewboard → Unhelpful API 105 error given when trying to push a commit with just an empty file to reviewboard
| Reporter | ||
Updated•10 years ago
|
Summary: Unhelpful API 105 error given when trying to push a commit with just an empty file to reviewboard → Unhelpful "API Error 105" given when trying to push a commit with just an empty file to reviewboard
| Assignee | ||
Comment 6•10 years ago
|
||
This specific case should be fixed by Bug 1161791.
Depends on: 1161791
Comment 7•10 years ago
|
||
There's still a bug here in that we're failing to catch an exception and turn it into something that is human friendly and actionable.
Thanks for tracking down the source of the error. Now we can repro and write a test case easily.
Updated•10 years ago
|
Priority: -- → P2
| Assignee | ||
Comment 8•10 years ago
|
||
commits with just new empty files should now work, and be displayed, as part of MozReview.
Fixed by Bug 1161791
Assignee: nobody → smacleod
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: Developer Services → MozReview
You need to log in
before you can comment on or make changes to this bug.
Description
•