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

STaX exception raised when reading resource with Unicode character #6660

Open
nieciecki opened this issue Jan 29, 2025 · 0 comments
Open

STaX exception raised when reading resource with Unicode character #6660

nieciecki opened this issue Jan 29, 2025 · 0 comments

Comments

@nieciecki
Copy link

Description

If server supports both xml and json formats, it is possible to add resource with an unicode with json, but if someone reads or search this resource with XML format, STaX exception is raised. Server will return 200 OK without any content.

This error occurs in my system that uses HAPI FHIR Server as well as on the hapi fhir test server.
I used https://hapi.fhir.org/baseR4 to reproduce the error.

Steps to reproduce the behavior:

  1. Create a resource with an unicode character

{ "resourceType": "NamingSystem", ... "uniqueId": [ { ... "comment": "\u0001" } ] }

  1. Read or search for this resource with Accept: application/fhir+xml

Expected behavior

Probably character should be escaped or removed.

@nieciecki nieciecki changed the title STaX raised exception when reading resource with Unicode character STaX exception raised when reading resource with Unicode character Jan 29, 2025
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