Skip to content

POST Binary, Failure invoking interceptor for pointcut(s) STORAGE_PRESHOW_RESOURCES #4905

@jmarchionatto

Description

@jmarchionatto

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

  1. 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-";
	}
  1. configure binary storage
  2. POST /Binary
{
  "resourceType": "Binary",
  "contentType": "application/octet-stream",
  "data": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}

Expected behaviour
POST request should succeed

Environment:
v6.4.4

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions