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. MYFACES-3383-1.patch
        111 kB
        Leonardo Uribe
      2. TestStackOverflow.war
        3.37 MB
        Michael Dietrich

        Activity

        Michael Dietrich created issue -
        Michael Dietrich made changes -
        Field Original Value New Value
        Attachment TestStackOverflow.war [ 12502114 ]
        Leonardo Uribe made changes -
        Attachment MYFACES-3383-1.patch [ 12532074 ]
        Leonardo Uribe made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Leonardo Uribe [ lu4242 ]
        Fix Version/s 2.0.15 [ 12321753 ]
        Fix Version/s 2.1.9 [ 12321755 ]
        Resolution Fixed [ 1 ]
        Leonardo Uribe made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development