Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3944

Calls to fcc.startComponentUniqueIdSection(...) and fcc.endComponentUniqueIdSection(...) should be surrounded in a try finally block

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.2.6
    • 2.2.7
    • JSR-344
    • None

    Description

      In some situations where an exception could be raised inside a component like c:forEach, and on the same time fcc.startComponentUniqueIdSection(...) and fcc.endComponentUniqueIdSection(...) are used, the section is not closed, affecting theoretically the ids generated.

      The probability of something like this is very low, but as a good practice it would be better to ensure fcc.startComponentUniqueIdSection(...) and fcc.endComponentUniqueIdSection(...) are called inside a try

      {...}

      finally block.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            lu4242 Leonardo Uribe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: