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

On a patch passing in a unsuported operator causes errror #2712

Closed
d0roppe opened this issue Aug 24, 2021 · 1 comment
Closed

On a patch passing in a unsuported operator causes errror #2712

d0roppe opened this issue Aug 24, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@d0roppe
Copy link
Collaborator

d0roppe commented Aug 24, 2021

Describe the bug
If using JSON Patch, passing in delete instead of remove causes error on the patch for the a resource.

{
  "resourceType": "OperationOutcome",
  "issue": [
    {
      "severity": "fatal",
      "code": "exception",
      "details": {
        "text": "NullPointerException: value"
      }
    }
  ]
}

Environment
Which version of IBM FHIR Server?

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

@d0roppe d0roppe added the bug Something isn't working label Aug 24, 2021
@prb112 prb112 changed the title On a patch passing in a unsuported operator causes errro On a patch passing in a unsuported operator causes errror Aug 24, 2021
@prb112 prb112 self-assigned this Aug 24, 2021
@prb112 prb112 added this to the Sprint 2021-11 milestone Aug 24, 2021
@d0roppe
Copy link
Collaborator Author

d0roppe commented Sep 2, 2021

Verified with the latest code that now passing a invalid operator on a FHIRPath patch or a JSON Patch results in a 400 return code with error information. Closing issue

@d0roppe d0roppe closed this as completed Sep 2, 2021
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

2 participants