M20 Azure RAFS - Create Legal Tag - No standard Error Message for Expiration date Leap year/Date format validation Handling
While creating the legal tags in RAFS DDMS the expiration date validation is done for past dates. The error message is missing for leap year and wrong date format.
Request body: Case 1: { "name": "{{LtagName}}", "description": "Legal Tag added for RAFS DDMS", "properties": { "contractId": "123456", "countryOfOrigin": [ "US", "CA" ], "dataType": "Public Domain Data", "exportClassification": "EAR99", "originator": "Autotest", "personalData": "No Personal Data", "securityClassification": "Private", "expirationDate": "2021-01-29" } } response : { "code": 400, "reason": "Validation error.", "message": "{"errors":["Expiration date must be a value in the future. Given 2021-01-29"]}" }
Case 2: { "name": "{{LtagName}}", "description": "Legal Tag added for RAFS DDMS", "properties": { "contractId": "123456", "countryOfOrigin": [ "US", "CA" ], "dataType": "Public Domain Data", "exportClassification": "EAR99", "originator": "Autotest", "personalData": "No Personal Data", "securityClassification": "Private", ** "expirationDate": "2025-02-29"** } }
response:
No error msg found
Case 3:
{ "name": "{{LtagName}}", "description": "Legal Tag added for RAFS DDMS", "properties": { "contractId": "123456", "countryOfOrigin": [ "US", "CA" ], "dataType": "Public Domain Data", "exportClassification": "EAR99", "originator": "Autotest", "personalData": "No Personal Data", "securityClassification": "Private", "expirationDate": "2025-03-32" } }
response:
No error msg found
Its better to provide the standard error message