-
Notifications
You must be signed in to change notification settings - Fork 8
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 Error with java library v4.0.8 #5
Comments
Hi @juliapampus, thanks for reporting this. |
Adding to my previous comment: In the third example, the context is missing. Adding a context made my local serializer work just fine. We improved the context generation a while back, fixing some bugs where the context would be missing. Did you create these examples manually, or could you provide a reproducible example that creates such a policy with a missing context? |
Hi, But there are still open questions with this:
|
Hi, |
Hi, found some missing Thank you for your help! |
Hi, |
Hi, |
When updating the Infomodel and Infomodel Serializer version in the Dataspace Connector to v4.0.8, we noticed some misbehavior for object deserialization. This causes test fails and avoids upgrading to this version, as we rely on proper deserialization for functionality as it used to work with older versions.
I provided three examples. In all of them, I use the builder classes and
toRdf()
method to create IDS objects. Then, I try to convert exactly these strings back to IDS objects using theSerializer.deserialize(String serialization, Class<T> valueType)
method.1. ConnectorEndpoint: everything works fine
IDS object (as RDF):
IDS object after deserialization (from IntelliJ debug console):
![image](https://user-images.githubusercontent.com/72392527/121048245-ed0d9e00-c7b6-11eb-8e59-a4447c75a805.png)
2. ConfigurationModel: error
IDS object (as RDF):
IDS object after deserialization (from IntelliJ debug console):
We don't get that far, an error is thrown during deserilization.
Stack trace snippet:
3. Rule: missing attributes
IDS object (as RDF):
and/or
IDS object after deserialization (from IntelliJ debug console):
Can you help us with this problem? @maboeckmann @sebbader
The text was updated successfully, but these errors were encountered: