Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-11314

Avoid stack overflow in the presence of cycles in controller inclusion

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • Trunk, Upcoming Branch
    • None
    • framework
    • None

    Description

      The inclusion of controller configuration files can lead to inclusion cycles which are not safely handled, because they can lead to infinite recursion that end up in stack overflow exception.

      A very basic form of cycle is controllers A and B which includes each other.

      I would be better to check the inclusion cycles and report an appropriate error.

      Attachments

        1. 0001-Improved-Rewrite-Digraph.patch
          19 kB
          Mathieu Lirzin
        2. 0002-Improved-Detect-inclusion-cycles-in-controller-confi.patch
          6 kB
          Mathieu Lirzin
        3. 0001-Improved-Rewrite-Digraph.patch
          20 kB
          Mathieu Lirzin

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mthl Mathieu Lirzin (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: