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

Deserialization problem with TemplateMetaDataDto.createdOn #637

Open
2 tasks done
askask opened this issue Sep 9, 2024 · 0 comments
Open
2 tasks done

Deserialization problem with TemplateMetaDataDto.createdOn #637

askask opened this issue Sep 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@askask
Copy link
Contributor

askask commented Sep 9, 2024

Before reporting an issue

  • I have searched existing issues
  • I have reproduced the issue with the latest release

Environment information

openEHR SDK version 2.17

Steps to reproduce

In the method TemplateEndpoint.findAllTemplates() the SDK tries to parse created_timestamp with a certain pattern ("yyyy-MM-dd'T'HH:mm:ss.SSSXXX"). When we tried to use it with a Better openEHR server, this causes an exception:

org.ehrbase.client.exception.ClientException: Cannot deserialize value of type `java.time.OffsetDateTime` from String "2023-10-19T09:57:27.31Z": Failed to deserialize java.time.OffsetDateTime: (java.time.format.DateTimeParseException) Text '2023-10-19T09:57:27.31Z' could not be parsed at index 20

In the the openEHR specification this field is defined only as a string, but not as a specific date format.

Expected behavior

We would expect that any string is accepted here, so that the SDK is compatible with other openEHR providers.

Actual result

Further information

No response

@askask askask added the bug Something isn't working label Sep 9, 2024
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

1 participant