Project

General

Profile

Actions

Task #2422

open

[Tiện ích][Rerating error][Export rerating error file][Lỗi backend] Nhập sai format trường fromTimeProcess và toTimeProcess, ra response sai

Added by Anh Vương Quốc 3 months ago. Updated 3 months ago.

Status:
Done
Priority:
High
Category:
-
Target version:
-
Start date:
08/29/2025
Due date:
08/30/2025 (about 3 months late)
% Done:

100%

Estimated time:
Due Date - Customer:
Start Date - Customer:

Description

Step 1: test api với url: http://10.207.252.137:8040/api/roaming/rerating-error/export-rating-error-file
Step 2: Request
{
"isExcel": false,
"header":[
{"index": 0, "header": "Direction",
"indexOfData": 4},
{ "index": 1, "header": "Type",
"indexOfData": 3},
{ "index": 2, "header": "Source file",
"indexOfData": 0},
{ "index": 3, "header": "Process name",
"indexOfData": 1},
{ "index": 4, "header": "Time process",
"indexOfData": 7},
{ "index": 5, "header": "File name",
"indexOfData": 2},
{ "index": 6, "header": "Error code",
"indexOfData": 5},
{ "index": 7, "header": "Description",
"indexOfData": 6},
],
"searchRequest": {
"orderList": null,
"direction": 2,
"type": 1,
"fileType": 1,
"processName": null,
"fileName": null,
"errorCode": null,
"fromTimeProcess": "01/12/2024 00:00:00",
"toTimeProcess": "24/01/2025 23:59:59",
"status": null
},
"ids": [4]
}

Step 3: Nhập sai format ngày fromTimeProcess trước, nhấn send, sau đó check tiếp nhập sai format ngày toTimeProcess, nhấn send

Kết quả mong đợi:

  • hiển thị chung cảnh báo: Hiển thị cảnh báo:
    [RM02_WEB_ERROR_000061] Date time {} invalid format. Only dd/mm/yyyy HH:mm:ss is accepted

Kết quả thực tế:

  • Trường hợp nhập sai format ngày kiểu: 2/2/2024 00:00:00, 2024 00:00:00 thì nhận cảnh báo: Json Parse error: for input string: {} => Cần sửa thành cảnh báo chung khi nhập sai format
Actions #1

Updated by Phạm Minh Phương 3 months ago

  • Status changed from Open to Done
  • Assignee changed from Phạm Minh Phương to Anh Vương Quốc
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF