Uploaded image for project: 'User Directory'
  1. User Directory
  2. UD-314

Stack overflow when UD root depth is set to high values (i.e 50)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 2.19.3, 2.20.0
    • 2.19.0
    • None

      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:

      1. Configure a User Directory with 50 levels of depth
      2. 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

            Unassigned Unassigned
            jhawken James Hawken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: