FHIR icon indicating copy to clipboard operation
FHIR copied to clipboard

409 message with concurrent delete should not state insert

Open d0roppe opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. when running concurrent deletes on the same resource, if the 409 message is issued, the text for the message should indicate you were doing a delete and not a insert. Or should be made to be more generic so that it will just indicate there was a conflict condition processing the request. Currently it states:

{
    "id": "c0-a8-1-d7-a54af517-de65-4664-8a98-15b4949611e5",
    "issue": [
        {
            "code": "conflict",
            "details": {
                "text": "Encountered version id mismatch while inserting Resource"
            },
            "severity": "fatal"
        }
    ],
    "resourceType": "OperationOutcome"
}

Describe the solution you'd like Maybe a message that states genericly why you got a 409, something like "Encountered version id mismatch, likely due to concurrent access to the same resource"

d0roppe avatar Mar 21 '22 11:03 d0roppe

maybe just change "inserting" to "updating"?

lmsurpre avatar Mar 21 '22 12:03 lmsurpre

we're good with the following error message for both updates and deletes:

"Encountered version id mismatch, likely due to concurrent modification of the same resource"

lmsurpre avatar Sep 06 '22 13:09 lmsurpre