Internal service error during patch dataset metadata call
Request:
curl --location --request PATCH 'https://osdu.m23.gcp.gnrg-osdu.projects.epam.com/api/seismic-store/v3/dataset/tenant/autotesttenantid420452/subproject/subprojectodi135448/dataset/AutoTest_dsetodi620423?path=autotest_path' \
--header 'Content-Type: application/json' \
--header 'data-partition-id: osdu' \
--header 'Authorization: Bearer ...' \
--data '{
"dataset_new_name": "autotest_new",
"metadata": {
"f1": "v1",
"f2": "v2",
"f3": "v3"
},
"filemetadata": {
"f1": "v1",
"f2": "v2",
"f3": "v3"
},
"last_modified_date": "Thu Jul 16 2020 04:37:41 GMT+0000 (Coordinated Universal Time)",
"gtags": [
"tag01",
"tag02",
"tag03"
],
"ltag": "osdu-SeismicDMS-Legal-Tag-Test8661564",
"readonly": false,
"seismicmeta": {
"kind": "osdu:seistore:seismic2d:1.0.0",
"legal": {
"legaltags": [
"osdu-SeismicDMS-Legal-Tag-Test8661564"
],
"otherRelevantDataCountries": [
"US"
]
},
"data": {
"msg": "Auto Test sample data patched"
}
}
}'
Response:
Cannot read properties of undefined (reading 'name')
Possible root cause is:
We assign variable here https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/seismic/seismic-dms-suite/seismic-store-service/-/blob/master/app/sdms/src/services/dataset/handler.ts#L743 This "If" condition do not have "else".
But we use this variable here https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/seismic/seismic-dms-suite/seismic-store-service/-/blob/master/app/sdms/src/services/dataset/handler.ts#L787 in any case