MyFaces Core
  1. MyFaces Core
  2. MYFACES-3383

Self nested Composite Component leads to EL Stack Overflow

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.0.15, 2.1.9
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows

      Description

      If the same Composite Component is used inside itself, e.g. as child of an ui:include that is included in the Composite Component, an StackOverflow happens, if an EL Expression is refering CC interface attributes.

      The use case is a CC to include a facelet, given by name. If the included facelet uses the same CC to include another facelet, "CompositeComponentELUtils.getCompositeComponentBasedOnLocation(..)" does always find the same CC, which leads to an endless loop.

      Please see the attached file for an example of the issue.

      1. TestStackOverflow.war
        3.37 MB
        Michael Dietrich
      2. MYFACES-3383-1.patch
        111 kB
        Leonardo Uribe

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Leonardo Uribe
            Reporter:
            Michael Dietrich
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development