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

Wrong response on Location Hierarchy after put request. #47

Open
peterMuriuki opened this issue Jun 26, 2023 · 0 comments
Open

Wrong response on Location Hierarchy after put request. #47

peterMuriuki opened this issue Jun 26, 2023 · 0 comments

Comments

@peterMuriuki
Copy link

related to onaio/fhir-web#1209

On fhir-web the below scenarios have been observed:

  1. A user creates a new location using put:

    • the new location is not included in the location hierarchy in an immediate follow up GET request to locationHierarchy. sometimes the location is not included in the hierarchy for a few more requests. It does get included eventually after a few seconds.
  2. A user edits partOf field of a location such that its nested about 2 levels deeper than its current level.

    • The location hierarchy responds with a completely incorrect location hierarchy response. The wrong response is a past version of the hierarchy. However, after a few seconds subsequent requests do return the correct location hierarchy
  3. Once a put request is sent to locations endpoint, an immediate follow up get request to locationHierarchy, stochastically fails with the following error:

{
  "resourceType": "OperationOutcome",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>HAPI-0389: Failed to call access method: java.lang.NullPointerException</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
  },
  "issue": [
    {
      "severity": "error",
      "code": "processing",
      "diagnostics": "HAPI-0389: Failed to call access method: java.lang.NullPointerException"
    }
  ]
}

See onaio/fhir-web#1209 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant