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

When Hibernate Search is enabled, the $apply-codesystem-delta-add operation throws an InvalidDataAccessApiUsageException #6697

Open
epeartree opened this issue Feb 10, 2025 · 0 comments · Fixed by #6670
Assignees
Labels

Comments

@epeartree
Copy link
Collaborator

epeartree commented Feb 10, 2025

To Reproduce
Steps to reproduce the behavior:

  1. Set StorageSettings.myAutoSupportDefaultSearchParams to false
  2. Enable Hibernate Search
  3. Make a POST request to <baseEndPoint>/CodeSystem/$apply-codesystem-delta-add with this in the body:
{
    "parameter": [
        {
            "name": "system",
            "valueUri": "http://example.com/cs"
        },
        {
            "resource": {
                "concept": [
                    {
                        "code": "CHEM",
                        "display": "Chemistry",
                        "concept": [
                            {
                                "code": "HB",
                                "display": "Hemoglobin"
                            },
                            {
                                "code": "NEUT",
                                "display": "Neutrophils"
                            }
                        ]
                    },
                    {
                        "code": "MICRO",
                        "display": "Microbiology",
                        "concept": [
                            {
                                "code": "C&S",
                                "display": "Culture And Sensitivity"
                            }
                        ]
                    }
                ],
                "resourceType": "CodeSystem"
            },
            "name": "codeSystem"
        }
    ],
    "resourceType": "Parameters"
}
  1. See error: response 500, HAPI-0389: Failed to call access method: org.springframework.dao.InvalidDataAccessApiUsageException: HAPI-2523: Invalid sort specification: _lastUpdatedresponse 500, HAPI-0389: Failed to call access method: org.springframework.dao.InvalidDataAccessApiUsageException: HAPI-2523: Invalid sort specification: _lastUpdated
  2. Expected behaviour
    The response body should looks something like:
{
    "resourceType": "Parameters",
    "parameter": [
        {
            "name": "conceptCount",
            "valueInteger": 5
        },
        {
            "name": "target",
            "valueReference": {
                "reference": "CodeSystem/1352"
            }
        }
    ]
}

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • HAPI FHIR Version: 7.8.0

Additional context
Add any other context about the problem here.

@AbayomiE-T AbayomiE-T added the bug label Feb 10, 2025
@AbayomiE-T AbayomiE-T changed the title Some title to fix later. When Hibernate Search is enabled, $apply-codesystem-delta-add, throws an InvalidDataAccessApiUsageException Feb 10, 2025
@AbayomiE-T AbayomiE-T changed the title When Hibernate Search is enabled, $apply-codesystem-delta-add, throws an InvalidDataAccessApiUsageException When Hibernate Search is enabled, the $apply-codesystem-delta-add operation throws an InvalidDataAccessApiUsageException Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants