[BUG][Go Service]Return 404 when there is no component in requesting product/version on localelist/componentlist/supportedlanguagelist APIs.
Open
@Xiaochao8 is already working on this.
Since Nov 30, 2022.
area/go-service
kind/bug
priority/low
- Dominant language
- Java
- Stars
- 72
- Forks
- 69
- Avg merge
- 23h 32m
- Merged PRs (30d)
- 4
Description
Describe the bug
commit: a3840c9ffc8abf789b0306105e95ce760115c1c6
Return 404 when there is no component in requesting product/version on localelist/componentlist/supportedlanguagelist API.
Effected APIs: getting localelist/componentlist/supportedlanguagelist APIs
To Reproduce
Steps to reproduce the behavior:
Takes component list as example:
- Go to component list api: GET
[/translation/products/{productName}/versions/{version}/componentlist] - Request a product&version: no data under product/version folder.
- Check the response:
{
"response": {
"code": 404,
"message": "SingleVersionNoData/2.0.0 doesn't exist"
},
"data": {
"components": null,
"productName": "SingleVersionNoData",
"version": "2.0.0"
}
}
Expected behavior
Return to 200 with [] empty list for components item.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.