[BUG] [Java Service]Failed to get data origin in v1/v2 string-based GET/POST API.
Open
Nobody has claimed this yet.
area/java-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:2a16c214690243b83109a776751ed50773689bf7
Failed to get data origin in key-based GET/POST API.
To Reproduce
Steps to reproduce the behavior:
- Go to 'GET [/i18n/api/v2/translation/products/{productName}/versions/{version}/locales/{locale}/components/{component}/keys]' API.
- Input valid product/version/locale/component/key in this API:
http://localhost:8091/i18n/api/v2/translation/products/VMwareVIP2018/versions/1.1.0/locales/en/components/Test.ABC_abc-123/keys?keys=Test.ABC_abc-123&pseudo=false - Get response as below: dataOrigin is empty
{
"response": {
"code": 200,
"message": "OK",
"serverTime": ""
},
"signature": "",
"data": {
"productName": "VMwareVIP2018",
"version": "1.1.0",
"dataOrigin": "",
"pseudo": false,
"machineTranslation": false,
"component": "Test.ABC_abc-123",
"messages": {
"Test.ABC_abc-123": "The 1st Notes"
},
"locale": "en",
"status": "",
"id": 0
}
}
Expected behavior
Can get the data origin in response:
cache or bundle
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.
Research direction
Start by reproducing the GET /i18n/api/v2/translation/products/{productName}/versions/{version}/locales/{locale}/components/{component}/keys request with the example values and inspect its response. Done means the response's dataOrigin identifies the source as either cache or bundle; the issue does not name a source file or test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100