Legal Service: POST and PUT Calls Allow Invalid Date Format Causing GET Calls to Fail
When updating the legal tag, the customer used an expiration date as 5555555555555. This converts to the date 178018-07-19 in the backend. Consequently, the GET calls are failing because the method expects the date to be in the "yyyy-mm-dd" format.
Sample JSON for POST call https:///api/legal/v1/legaltags { "name": "opendes-aayushi6", "description": "aayushi testing", "properties": { "contractId": "A1234", "countryOfOrigin": ["US"], "dataType": "Public Domain Data", "expirationDate": 5555555555555555, "exportClassification": "EAR99", "originator": "MyCompany", "personalData": "No Personal Data", "securityClassification": "Public" } }
We should add the restriction in Post/PUT call to not allow dates which are not in yyyy-mm-dd format because the API expects in that format -> https://osdu.pages.opengroup.org/platform/security-and-compliance/legal/api/