Azure M11 - Well Delivery 500 error when creating well entity
I am getting a 500 error when I try run "UC1-Data1-entity_create well" postman request in collection https://community.opengroup.org/osdu/platform/pre-shipping/-/blob/main/R3-M11/QA_Artifacts_M11/Collections/Well%20Delivery%20DDMS%20CI-CD%20v3.0.postman_collection.json and postman environment https://community.opengroup.org/osdu/platform/pre-shipping/-/blob/main/R3-M11/Azure-M11/Environment/Verify_Preshipping_New_TeamA-E.postman_environment.json (note I had to add in the welldeiveryURL to the postman environment because it was missing).
Below is the http request that is failing:
curl --location --request PUT 'https://osdu-ship.msft-osdu-test.org/api/well-delivery/storage/v1/well' \
--header 'data-partition-id: opendes' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ...' \
--data-raw '{
"id": "opendes:master-data--Well:well01",
"kind": "pv:wd-schema:Well:1.0.0",
"legal": {
"legaltags": [
"opendes-WellDeliveryDDMS-Legal-Tag"
],
"otherRelevantDataCountries": [
"US"
]
},
"acl": {
"owners": [
"data.default.owners@opendes.contoso.com"
],
"viewers": [
"data.default.owners@opendes.contoso.com"
]
},
"data": {
"Name": "well12345",
"NameLegal": "legal12345",
"NumLicense": "LIC12345",
"District": "Mildland",
"Operator": "pv",
"DTimSpud": "2020-01-01T01:01:01Z",
"ExistenceKind": "opendes:reference-data--ExistenceKind:planned:"
}
}'
Response:
{
"timestamp": "2022-04-27T00:10:55.243+0000",
"status": 500,
"error": "Internal Server Error",
"message": "Request processing failed; nested exception is AppException(error=AppError(code=0, reason=Access denied, message=The user is not authorized to perform this action, errors=null, debuggingInfo=null, originalException=EntitlementsException()), originalException=EntitlementsException())",
"path": "/api/well-delivery/storage/v1/well"
}