Skip to content

Spaces cannot be escaped with + when using PUT operation #5103

Closed
@steve-corbett-smilecdr

Description

@steve-corbett-smilecdr

Describe the bug
Using a PUT operation with a FHIR search that includes spaces escaped with plus sign in the search string fails conditional check.

To Reproduce
Steps to reproduce the behavior:

  1. Create an Organization with a space in its name: POST Organization body={"resourceType": "Organization", "name": "FOO BAR"}
  2. Attempt to update it using a plus sign in your FHIR search: PUT Organization?name=FOO+BAR body={"resourceType": "Organization", "name": "FOO BAR2"}

Expected behaviour
The PUT operation should succeed, and the resource should be updated with the new name.

Actual behaviour
Fails with the following error response:

400: {"resourceType":"OperationOutcome","issue":\[{"severity":"error","code":"processing","diagnostics":"HAPI-0929: Failed to process conditional create. The supplied resource did not satisfy the conditional URL."}\]}

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions