NOTE: Before filing a ticket, please see the following URL:
https://github.com/hapifhir/hapi-fhir/wiki/Getting-Help
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
- Configure an interceptor with a hook to add binary blob id prefix as follows:
@Hook(Pointcut.STORAGE_BINARY_ASSIGN_BLOB_ID_PREFIX)
public String provideBlobIdForBinary(RequestDetails theRequestDetails, IBaseResource theResource) {
ourLog.info("Received binary for prefixing!" + theResource.getIdElement());
return "prefix-test-blob-id-";
}
- configure binary storage
- POST /Binary
{
"resourceType": "Binary",
"contentType": "application/octet-stream",
"data": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
Expected behaviour
POST request should succeed
Environment:
v6.4.4