We're updating the issue view to help you get more done. 

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.

1 2 BookStore -> Book ->1 Comment \->* Comment

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

Status

Assignee

Vlad Mihalcea

Reporter

Lars Storm

Components

Fix versions

Affects versions

5.2.13

Priority

Major