-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: None
-
Component/s: API - REST, Repository - Branches / Tags
-
1
-
Severity 3 - Minor
Summary
Retrieve Tag Rest Endpoint returns 404 html response when it should return a JSON response. As per documentation:
Retrieve a tag in the specified repository.
Environment
Bitbucket 4.14 +
Steps to Reproduce
Enter the following URL for tag that doesn't exist.
/rest/api/1.0/projects/
{projectKey}
/repos/
{repositorySlug}
/tags/
{name:.*}
This will return 404 HTML response instead of a JSON
Expected Results
Expected JSON response. Example:
{
"errors": [
{
"context": null,
"message": "A detailed error message.",
"exceptionName": null
}
]
}
Actual Results
Received HTML 404 response
- 404 Not Found
Workaround
N/A
- mentioned in
-
Page Loading...