Create record with empty ACL group issue
Steps for community environment:
- Create empty group - data.acl2.test@osdu.osdu-gcp.go3-nrg.projects.epam.com
- Run PUT https://os-storage-attcrcktoa-uc.a.run.app/api/storage/v2/records with body
[
{
"acl": {
"owners": [
"data.acl2.test@osdu.osdu-gcp.go3-nrg.projects.epam.com"
],
"viewers": [
"data.acl2.test@osdu.osdu-gcp.go3-nrg.projects.epam.com"
]
},
"data": {
"msg": "hello world from Data Lake"
},
"id": "osdu:999480024202:999727746813",
"kind": "osdu:osdu:999480024202:0.2.1",
"legal": {
"legaltags": [
"osdu-WellLog-Legal-Tag-Test5863361"
],
"otherRelevantDataCountries": [
"US"
],
"status": "compliant"
},
"meta": [
{}
],
"version": 0
}
]
Expected: Storage reject record since ACL is empty
Actual: Record was created