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)

defect

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/
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).
Attached file `hg export -r 265378`
This patch is to work around the bug where I can't push a single draft() changeset to reviewboard.
Attached file `hg export -r 265377`
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.
(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.
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
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
This specific case should be fixed by Bug 1161791.
Depends on: 1161791
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.
Priority: -- → P2
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
Product: Developer Services → MozReview
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: