[BUG][Go Service][S3]Return 400 when requesting a product/version without component info on component list api.
Open
@Xiaochao8 is already working on this.
Since Mar 22, 2023.
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: ef33139a4aaf16c0e90fcec00bfb305a3439b73e
[S3]Return 400 when requesting a product/version without component info on component list api.
Effected api:
component api, supported language list api, supported locale list api.
To Reproduce
Steps to reproduce the behavior:
- Here is a product/version in S3, but there is no component data under product/version directory.
- Request this product/version's component name list info with below api:
GET [/translation/products/{productName}/versions/{version}/componentlist] API - See the response:
{
"response": {
"code": 400,
"message": "Product 'SingleVersionNoData' doesn't exist"
}
}
Expected behavior
Return to 200 and empty list for components item.
Additional context
Not reproducible on bundle mode.
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.