Tiles
  1. Tiles
  2. TILES-509

infinite recursion in TilesApplicationContextWrapper

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.4, 2.2.1
    • Fix Version/s: 2.2.2
    • Component/s: tiles-core
    • Labels:
      None

      Description

      The class org.apache.tiles.context.TilesApplicationContextWrapper recurses infinitely in the methods "URL getResource(String path)" and "Set<URL> getResources(String path)".

      You probably meant to delegate to context.

      Found in "tiles-2.2.1" tag and also in the "trunk".

        Activity

        Hide
        Cristian Vasile Mocanu added a comment -

        By the way, I found this by simply running sonar (http://www.sonarsource.org/) on your project.

        Show
        Cristian Vasile Mocanu added a comment - By the way, I found this by simply running sonar ( http://www.sonarsource.org/ ) on your project.
        Hide
        Antonio Petrelli added a comment -

        This bug affets 2.1.4 too. Thanks for the report.
        What we want to do is, as you said, delegation to the wrapped context.
        If you can, please post a patch.

        Show
        Antonio Petrelli added a comment - This bug affets 2.1.4 too. Thanks for the report. What we want to do is, as you said, delegation to the wrapped context. If you can, please post a patch.
        Hide
        Cristian Vasile Mocanu added a comment -

        Here you go

        Show
        Cristian Vasile Mocanu added a comment - Here you go
        Hide
        Antonio Petrelli added a comment -

        This bug does not affect Tiles 3.

        Show
        Antonio Petrelli added a comment - This bug does not affect Tiles 3.
        Hide
        Antonio Petrelli added a comment -

        Applied patch by Cristian Vasile Mocanu.
        Thanks Cristian!

        Show
        Antonio Petrelli added a comment - Applied patch by Cristian Vasile Mocanu. Thanks Cristian!

          People

          • Assignee:
            Antonio Petrelli
            Reporter:
            Cristian Vasile Mocanu
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development