Configuring a User Directory root with a high depth value (e.g. 50 levels), causes stack overflow errors.
In practice, a user directory is usually limited to 2–3 levels
Steps to reproduce:
- Configure a User Directory with 50 levels of depth

- Observe stack overflow errors (indexing and calculating cache)
Expected behavior:
- Handle large depth values safely,
or - Prevent users from being able to input such big values for depth (i.e limit to 3)
Current behaviour
Pile d'appels : java.lang.StackOverflowError at org.ametys.core.util.SizeUtils#_shallowSizeOf:165 at org.ametys.core.util.SizeUtils#_sizeOf:144 at org.ametys.core.util.SizeUtils#_sizeOf:155 at org.ametys.core.util.SizeUtils#_sizeOf:155 at org.ametys.core.util.SizeUtils#_sizeOf:155 at org.ametys.core.util.SizeUtils#_sizeOf:155 at org.ametys.core.util.SizeUtils#_sizeOf:155 at org.ametys.core.util.SizeUtils#_sizeOf:155 at org.ametys.core.util.SizeUtils#_sizeOf:155