Child entity involved in update operation is overwritten with wrong values
Try this:
- Assume a "Book" type with child type "Person" (via "Autor" assoc). Note that Person is an Entity type, and its identity attribute is "Person Name".
- Create 2 persons: Person A with an Description, and Person B without Description.
- Enter a new Book, and fill-in the author fields with Person B's name (that is First Name and Last Name), and press "Save"
- Edit the book: change the author to Person A (fill-in First Name and Last Name).
=> Now the newly assigned person's non-identy values e.g. "Description" are overwritten with the formerly assigned person's values. That is Person A's values are overwritten with with Person B's (possibly empty) values!
In case the entity child type has multi-fields the outcome is different: nothing gets overwritten, but the request fails with java.lang.RuntimeException: Tried to replace original topic 5857 when there are no old topics (null)
.
This is a bug in Webclient. It sends wrong update requests.
Affected are models which utilize Entity types as child types.
This is related to "Reduced Detail Rendering" (#53 (closed)).