Skip to content

Azure blob offload cannot connect to older instance of azurite #3866

Closed
@punktilious

Description

Describe the bug
Running an older instance of azurite, after updating the Azure blob client libraries we can no longer connect:

Caused by: java.util.concurrent.ExecutionException: com.azure.storage.blob.models.BlobStorageException: Status code 400, "<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Error>
  <Code>InvalidHeaderValue</Code>
  <Message>The value for one of the HTTP headers is not in the correct format.
RequestId:9ac1dcdd-f371-47b1-bad5-d04060811be4
Time:2022-08-09T23:06:16.790Z</Message>
  <HeaderName>x-ms-version</HeaderName>
  <HeaderValue>2021-06-08</HeaderValue>
</Error>"

Need to provide a way to specify the service version when constructing the Azure Blob client.

Environment
Which version of IBM FHIR Server? 5.0.0-SNAPSHOT

To Reproduce
Run older azurite container with newer client.

Expected behavior
The FHIR server should be able to connect.

Additional context
Mostly an issue with bit rot in local test environments. Updating the container would probably address this, but we should also allow configuration to control the service version used by the client, as offered by the blob client API.

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions