When using the generic client for an update, assuming communicating to a versioned server, the "If-Match" header is set to the version of the respource that is being updated, but the required "W/" indicating a weak ETag is omitted. Relevant part of the standard: https://hl7.org/fhir/r4/http.html#versioning
To Reproduce
Steps to reproduce the behavior:
Setup a versioned server that has strict "If-Match" handling
Query for a resource using the generic client
Change any part of the resource and try to do an update using the generic client.
Observe server rejecting the update
Expected behavior
The client should send a weak ETag (prepended with "W/") as per the standard
Environment (please complete the following information):
When using the generic client for an update, assuming communicating to a versioned server, the "If-Match" header is set to the version of the respource that is being updated, but the required "W/" indicating a weak ETag is omitted. Relevant part of the standard: https://hl7.org/fhir/r4/http.html#versioning
To Reproduce Steps to reproduce the behavior:
Expected behavior The client should send a weak ETag (prepended with "W/") as per the standard
Environment (please complete the following information):
Relevant code: https://github.com/hapifhir/hapi-fhir/blob/d1c2d839d187b0820e3c38658a2fef889a908dd3/hapi-fhir-client/src/main/java/ca/uhn/fhir/rest/client/method/MethodUtil.java#L208