gitbucket/gitbucket

Creating pull request via web API returns escaped response

開放

#2,306 建立於 2019年4月30日

 (6 則留言) (0 個反應) (0 位負責人)Scala (1,262 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (9,371 顆星)
PR 合併指標
 (平均合併 1小時 54分鐘) (30 天內合併 18 個 PR)

描述

Issue

Impacted version: 4.31.2

Deployment mode: standalone app

Problem description: When you create a pull request via web api, you'll get following response with double quotes escaped.

POST http://localhost:8080/api/v3/repos/root/test1/pulls HTTP/1.1
Content-Type: application/json

{
  "title": "Amazing new feature",
  "body": "Please pull this in!",
  "head": "develop",
  "base": "master"
}
"{\"number\":32,\"state\":\"open\",\"updated_at\":\"2019-04-30T05:39:30Z\",...

In case of the same API in GitHub

{"url":"https://api.github.com/repos/SIkebe/test1/pulls/2","id":274604732,...

貢獻者指南