vmware / vmware/singleton

[BUG][Go Service]Return 404 when there is no component in requesting product/version on localelist/componentlist/supportedlanguagelist APIs.

Open
#1,982 1 comment 0 reactions 1 assignee View on GitHub

@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:

  1. Go to component list api: GET
    [/translation/products/{productName}/versions/{version}/componentlist]
  2. Request a product&version: no data under product/version folder.
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.