vmware / vmware/singleton

[BUG] [Service]Response message about invalid long date is not friendly on formatDate API.

Open
#983 0 comments 0 reactions 1 assignee View on GitHub

@huihuiw01 is already working on this.

Since Jan 27, 2021.

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
build with commit af12ee44a66854e33eb4e104d5133e1be3789053
Response message about invalid long date is not friendly on formatDate API.
/i18n/api/v2/formatting/date/localizedDate

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://localhost:8090/i18n/api/v2/formatting/date/localizedDate?locale=en&longDate=abc&pattern=y
    '
    longDate=abc
  2. See response: message "For input string: abc" is not friendly.
{
"response": {
  "code": 520,
  "message": "For input string: \"abc\"",
  "serverTime": ""
},
"signature": "",
"data": null
}

Expected behavior
It is better have more info to lead user to input correct kind data.

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.