Sign in or sign up before continuing. Don't have an account yet? Register now to get started.
[Bug] Cannot submit comment review - HTTP 500 error on drafts/publish endpoint
## Summary
Unable to submit comment review on merge request. Getting HTTP 500 Internal Server Error when calling the drafts/publish endpoint.
## Steps to reproduce
1. Navigate to merge request #2581 at `https://gitlab.com/itcareplus/cis-api/-/merge_requests/2581`
2. Start a review by adding comments to code changes
3. Select "Request changes" as reviewer state
4. Click "Submit review" button
5. Observe HTTP 500 error response
## Current behavior
- API call to `/drafts/publish` endpoint fails with HTTP 500 Internal Server Error
- Review comments are not submitted and remain in draft state
- User receives generic error message without specific details
- Review workflow is blocked
## Expected behavior
- Review should be submitted successfully with HTTP 200/201 response
- Comments should appear on the merge request
- Reviewer state should be updated to "requested_changes"
- User should receive confirmation of successful submission
## Environment
- **GitLab version**: [Check in Help → About GitLab]
- **Browser**: [e.g., Chrome 91.0.4472.124]
- **Operating System**: [e.g., Windows 10, macOS 12.0, Ubuntu 20.04]
- **GitLab instance**: GitLab.com (SaaS)
## Technical Details
**API Endpoint**: POST https://gitlab.com/itcareplus/cis-api/-/merge_requests/2581/drafts/publish
**Request Payload**:
```json
{
"noteable_id": 390599351,
"note": "",
"approve": false,
"approval_password": "",
"reviewer_state": "requested_changes"
}
issue