Open akeroyd opened 3 years ago
NOTE: Before filing a ticket, please see the following URL: https://github.com/hapifhir/hapi-fhir/wiki/Getting-Help
Describe the bug Similar issue to https://github.com/hapifhir/org.hl7.fhir.core/issues/392 Data can leak from one partition to another when using the _source search parameter.
_source
To Reproduce Steps to reproduce the behavior:
docker run -p 8080:8080 -e hapi.fhir.partitioning.allow_references_across_partitions=false -e hapi.fhir.partitioning.partitioning_include_in_search_hashes=false hapiproject/hapi:latest
aaa
curl -d '{"resourceType": "Parameters","parameter": [{"name": "id","valueInteger": 1},{"name": "name","valueCode": "aaa"}]}' -H "Content-Type: application/json" -X POST http://localhost:8080/fhir/default/\$partition-management-create-partition
bbb
curl -d '{"resourceType": "Parameters","parameter": [{"name": "id","valueInteger": 2},{"name": "name","valueCode": "bbb"}]}' -H "Content-Type: application/json" -X POST http://localhost:8080/fhir/default/\$partition-management-create-partition
curl -d '{"resourceType": "Patient","name": [{ "family": "Aaronson" }], "meta": { "source": "http://acme.org/aaa" }}' -H "Content-Type: application/json" -X POST http://localhost:8080/fhir/aaa/Patient
curl http://localhost:8080/fhir/bbb/Patient # 0 results found
curl http://localhost:8080/fhir/bbb/Patient?_source=http%3A%2F%2Facme.org%2Faaa # 1 result found from `aaa` partition
Expected behavior No results should be found, as no patient matching that search exists in the tenant.
Environment (please complete the following information):
v5.4.1
latest
Additional context I've checked most of the search parameters for Patient, and _source is the only one not working as expected.
Same issue here! Any updates on this?
NOTE: Before filing a ticket, please see the following URL: https://github.com/hapifhir/hapi-fhir/wiki/Getting-Help
Describe the bug Similar issue to https://github.com/hapifhir/org.hl7.fhir.core/issues/392 Data can leak from one partition to another when using the
_source
search parameter.To Reproduce Steps to reproduce the behavior:
aaa
bbb
aaa
partitionbbb
partitionbbb
partitionExpected behavior No results should be found, as no patient matching that search exists in the tenant.
Environment (please complete the following information):
v5.4.1
andlatest
Additional context I've checked most of the search parameters for Patient, and
_source
is the only one not working as expected.