[Sha 256] Unable to add note to MR diff when using sha256 repository
When working in a repository that has object format type of sha256, adding a note to an MR fails.
Where in the application are you seeing this issue?
URL of the page
POST http://gdk.test:3000/root/sha256repo/notes?target_id=126&target_type=merge_request
{"view":"inline","line_type":"old","merge_request_diff_head_sha":"2d432498d808db87b5459ce90a8cb8f55699bdb9f81272601369ea9a54c3f289","in_reply_to_discussion_id":"","note_project_id":"","target_type":"merge_request","target_id":126,"return_discussion":true,"note":{"note":"test","position":"{\"base_sha\":\"aab15e0c9e6ea6ce8f028e1009879ff9b63274f7b989120cf9f6798fe619df35\",\"start_sha\":\"aab15e0c9e6ea6ce8f028e1009879ff9b63274f7b989120cf9f6798fe619df35\",\"head_sha\":\"2d432498d808db87b5459ce90a8cb8f55699bdb9f81272601369ea9a54c3f289\",\"old_path\":\"file\",\"new_path\":\"file\",\"position_type\":\"text\",\"old_line\":null,\"new_line\":3,\"line_range\":{\"start\":{\"line_code\":\"971c419dd609331343dee105fffd0f4608dc0bf2_0_3\",\"type\":\"new\",\"old_line\":null,\"new_line\":3},\"end\":{\"line_code\":\"971c419dd609331343dee105fffd0f4608dc0bf2_0_3\",\"type\":\"new\",\"old_line\":null,\"new_line\":3}},\"ignore_whitespace_change\":false}","noteable_type":"MergeRequest","noteable_id":126,"commit_id":null,"type":"DiffNote","line_code":"971c419dd609331343dee105fffd0f4608dc0bf2_0_3"}}
422 Unprocessable Entity
{"errors":"Position must be a valid json schema"}
How did you expect the application to behave?
User should be able to add a note to an MR