Stackoverflow when order_inserts=true

Description

The following entity model will produce a stackoverflow when order_inserts is true and trying to insert a bookstore having one book having one comment and one comments.

The stackoverflow is produced from the ActionQueue#InsertActionSorter.hasParent which seems to never find a fitting parent or root parent. I guess that a simple fix is to have this recursive call check if the current parent has been processed before.

Note:

  • If the book is persisted instead of the bookstore the insertion is successful.

  • If either the single comment or the comment list is not set on the book the insertion is successful

Environment

None

Attachments

Assignee

Vlad Mihalcea

Reporter

Lars Storm

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure