Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1939

Stack overflow when inheriting from block that alread inherits from another one

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2
    • Labels:
      None

      Description

      There are problems with the following scenario: I have one Block A, another one B that has A as super-block defined and a third one C that has B as super-block defined.

      The super-relation between B and A works ok, but if you start in C, then forward to B, which in turn wants to forward to block A (all via the block:super: protocol), a stack overflow happens. It looks like he always thinks he is in C, so that block:super: from B will always get to B, thus creating an endless loop.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                grek Grzegorz Kossakowski
                Reporter:
                alexander.klimetschek Alexander Klimetschek
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: