-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Which Umbraco version are you using?
15.4.1 15.4.4
Bug summary
When saving nested blocks in a block grid (7+ levels of nesting) you get a The maximum configured depth of 32 has been exceeded
error.

Each block adds ~5 levels of depth.
6 x 5 =30 π
7 x 5 = 35 π₯
Specifics
I can replicate this issue in 15.4.1 and 15.4.4.
In Umbraco 16, you can nest up to ~14 blocks before hitting the maxDepth 64 limit and getting the The maximum configured depth of 64 has been exceeded
error, but this is just kicking the can down the road.
Steps to reproduce
- Create a block grid setup where you can nest a block inside another block recursively
- Nest 6 blocks recursively and "Save and Publish". The document will S+P
- Add 1 more block and "Save and Publish" and you will get the error
The actual number of levels may vary depending on your data.
Expected result / actual result
You should be able to nest as many blocks as is necessary.
I understand there are Json maxDepth limits and the need for them, currently set to 32 in v15 and 64 in v16, so this configuration should be manageable in some way. Some work has been done to increase the depth to 64 for the delivery API, but there is no exposure of the underlying JsonSerializerOptions to increase the max depth across the board. The v16 limit is hard-coded iirc and not configureable.