Click
  1. Click
  2. CLK-237

jsp page doesn´t work without a Border template

    Details

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

      Description

      The ClickServlet.renderJSP always forward to the *.htm page, and it causes a loop and OutOfMemory.

      The following code, always execute the "else" clause, because the "page.getTemplate()" returns the page with *.htm extension, and the page.getForward() returns the page with the *.jsp extension. This code works if the we use some Border page, but otherwise a OutOfMemory happens.

      if (page.getForward().equals(page.getTemplate()))

      { dispatcher = request.getRequestDispatcher(page.getForward()); }

      else

      { dispatcher = request.getRequestDispatcher(page.getTemplate()); }

      The patch is attached.
      regards,

        Activity

        Hide
        Malcolm Edgar added a comment -

        Hi Ricardo,

        Thanks for identifying this issue and providing the fix.

        This fix is checked in and will be available in release 1.4.

        thanks Malcolm

        Show
        Malcolm Edgar added a comment - Hi Ricardo, Thanks for identifying this issue and providing the fix. This fix is checked in and will be available in release 1.4. thanks Malcolm
        Hide
        Ricardo R. Lecheta added a comment -

        the following patch fixes the problem.

        Show
        Ricardo R. Lecheta added a comment - the following patch fixes the problem.

          People

          • Assignee:
            Malcolm Edgar
            Reporter:
            Ricardo R. Lecheta
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development