[Storage / Put / Records][R3][AWS] No validation check on [schema services/kind] for creation of new records.
Summary:Record sucessfully created although the schema does not exist on system.
Details/Example:
Put Method: {{osduonaws_base_url}}/api/storage/v2/records
Body:
[
{
"data": {
"ID" : "ID",
"Code" : "Code",
"Description": "Description",
"Name": "Name"
},
"id": "{{data_partition_id}}:reference-data--XXX:Id_2",
"kind": "{{data_partition_id}}:wks:reference-data--XXX:1.0.0",
"legal": {
"legaltags": [
"{{data_partition_id}}-public-usa-dataset-1"
],
"otherRelevantDataCountries": [
"US"
],
"status": "compliant"
},
"acl": {
"viewers": [
"data.default.viewers@{{data_partition_id}}.testing.com"
],
"owners": [
"data.default.owners@{{data_partition_id}}.testing.com"
]
}
}
]
Status : 201 created
Response
{
"recordCount": 1,
"recordIds": [
"opendes:reference-data--XXX:Id_2"
],
"skippedRecordIds": [],
"recordIdVersions": [
"opendes:reference-data--XXX:Id_2:1620285305392414"
]
}
Get Method :{{osduonaws_base_url}}/api/schema-service/v1/schema/{{data_partition_id}}:wks:reference-data--XXX:1.0.0
Response:
{
"error": {
"code": 404,
"message": "Schema is not present",
"errors": [
{
"domain": "global",
"reason": "notFound",
"message": "Schema is not present"
}
]
}
}