gitbucket/gitbucket

Creating pull request via web API returns escaped response

Aperta

#2306 aperta il 30 apr 2019

 (6 commenti) (0 reazioni) (0 assegnatari)Scala (1262 fork)batch import
bughelp wanted

Metriche repository

Star
 (9371 stelle)
Metriche merge PR
 (Merge medio 1h 54m) (18 PR mergiate in 30 g)

Descrizione

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,...

Guida contributor