-
Bug
-
Resolution: Fixed
-
Low
-
3.4.0, 3.9.2, 4.4.1
-
Severity 3 - Minor
-
Summary
When accessing the diff for large pull requests via rest, the response can be truncated.
Steps to Reproduce
- Access the pull request diff rest endpoint in a browser or using cURL - https://stash.company.com/rest/api/1.0/projects/PROJECT/repos/repo/pull-requests/1804/diff
- Returned JSON data will be truncated
Expected Results
Returned JSON response is not truncated and can be parsed
Actual Results
JSON response is truncated.
In the browser, the response usually ends with:
"createdDate":1412767342465,"updatedDate":1412767404799,"comments":[],"attributes":{},"tasks":[],"permittedOperations":{"deletable":false,"editable":false}}
With cURL, it can end more abruptly:
...,"author":{"name":"user","emai
Workaround
If using curl, add --http1.0 to the command.
- is duplicated by
-
BSERV-7786 REST API responses are truncated and are therefore unparsable
- Closed
- mentioned in
-
Page Loading...