Can't submit comments in Merge Requests
When I try to submit a comment in a merge request, the server response is 200ok but it returns a response saying the content was not valid.
The text of the comment was:
Why are we reassigning this variable to the same value?
🤔
The merge request is https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9437.
And the response was:
{
"award": false,
"id": null,
"valid": false,
"errors": {
"diff_line": ["can't be blank"],
"line_code": ["can't be blank", "must be a valid line code"]
},
"commands_changes": null
}
Request headers:
Accept:application/json, text/javascript, */*; q=0.01
Content-Type:application/x-www-form-urlencoded; charset=UTF-8
view:inline
line_type:
merge_request_diff_head_sha:91592708f09ec6317a8b9a45655bec19f72002b3
target_type:merge_request
target_id:2441205
note[commit_id]:
note[line_code]:e1f786f7c17b03c12853604ac88e0cc76193851e_69_142
note[noteable_id]:2441205
note[noteable_type]:MergeRequest
note[type]:DiffNote
note[position]:{"old_path":"app/assets/javascripts/awards_handler.js","new_path":"app/assets/javascripts/awards_handler.js","old_line":69,"new_line":142,"base_sha":"deb62183edbd9111691f62a4f6a9febb1fcd79f7","start_sha":"176cd2ba00e97fa3c39ab892ee239ec58764c112","head_sha":"91592708f09ec6317a8b9a45655bec19f72002b3"}
note[note]:Why are we reassigning this variable to the same value? :thinking:
commit:Comment