Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global caches in CodeSystemSupport and ValueSetSupport should be tenant-specific #2256

Closed
JohnTimm opened this issue Apr 19, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@JohnTimm
Copy link
Collaborator

Global caches in CodeSystemSupport and ValueSetSupport are not currently tenant-specific which means that tenant-specific value set and code system content acquired through the ServerRegistryResourceProvider may be visible globally. Instead, these caches should be tenant-specific and also have an option to be disabled.

@JohnTimm JohnTimm added the bug Something isn't working label Apr 19, 2021
@JohnTimm JohnTimm self-assigned this Apr 19, 2021
@lmsurpre lmsurpre added this to the Sprint 2021-05 milestone Apr 19, 2021
@kmbarton423
Copy link
Contributor

confirmed cache is tenant-specific


created a CodeSystem resource containing code=icecream
GET https://localhost:9443/fhir-server/api/v4/CodeSystem/hungrycaterpillar/$validate-code?code=icecream
$validate from default tenant to confirm found which will cache results for one minute
immediately attempted same validate from a different tenant (X-FHIR-TENANT-ID tenant1 and X-FHIR-DSID reference)
{
"resourceType": "OperationOutcome",
"id": "9-50-d4-62-c688b990-35a7-4c5e-8b8f-b317b9547ca3",
"issue": [
{
"severity": "fatal",
"code": "not-found",
"details": {
"text": "CodeSystem with id 'hungrycaterpillar' was not found"
},
"expression": [
""
]
}
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants