Register FTP service is accepting id

Description

Register FTP service is accepting id and isActive field in the request:
Request:
{
"id": "string",
"metadata": {},
"request": {
"address": "FTPAddress",
"certAlias": "FTPCerti",
"contactNo": "123456789",
"email": "FTP@ftp.com",
"id": "TestFTP1",
"isActive": true,
"name": "FTPTest"
},
"requesttime": "2018-12-10T06:12:52.994Z",
"version": "string"
}
Actual Response:
{
"id": "string",
"version": "string",
"responsetime": "2019-12-05T05:16:35.615Z",
"metadata": null,
"response": {
"id": "TestFTP1",
"name": "FTPTest",
"address": "FTPAddress",
"email": "FTP@ftp.com",
"contactNo": "123456789",
"certAlias": "FTPCerti",
"isActive": true,
"createdBy": "110005",
"createdDateTime": "2019-12-05T05:16:35.615Z",
"updatedBy": null,
"updatedDateTime": null,
"isDeleted": null,
"deletedDateTime": null
},
"errors": null
}
Expected: should not accept id.

Environment

qa

Activity

Show:

ravi.kant2@mindtree.com February 18, 2020 at 2:22 PM

Issue is fixed and working as expected.

Response from the upper request:

{ "id": "string", "version": "string", "responsetime": "2020-02-18T14:21:42.333Z", "metadata": null, "response": null, "errors": [ { "errorCode": "KER-MSD-999", "message": "Unrecognized field \"id\" (class io.mosip.kernel.masterdata.dto.FoundationalTrustProviderDto), not marked as ignorable (6 known properties: \"isActive\", \"contactNo\", \"address\", \"name\", \"email\", \"certAlias\"])\n at [Source: (PushbackInputStream); line: 12, column: 2] (through reference chain: io.mosip.kernel.core.http.RequestWrapper[\"request\"]->io.mosip.kernel.masterdata.dto.FoundationalTrustProviderDto[\"id\"])" } ] }

 

Jyoti Prakash Nayak January 8, 2020 at 6:53 AM

I have added random generated uuid as the id of the create request and made the isActive true by default . I have made the changes in code.

Fixed

Details

Assignee

Reporter

Severity

Major

Closed Date

Feb 18, 2020, 2:21 PM

Rootcause

Requirement issue

Time tracking

4.5h logged4.5h remaining

Components

Sprint

Priority

Created December 6, 2019 at 7:15 AM
Updated February 18, 2020 at 2:23 PM
Resolved December 30, 2019 at 9:52 AM