Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5643

WebPageRenderer should bind a Session if redirect is required and the session is temporary.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.16.0, 7.0.0-M2
    • Fix Version/s: 1.5.12, 7.0.0-M3, 6.17.0
    • Component/s: None
    • Labels:
      None

      Description

      WebApplication.storeBufferedResponse does not check if sessionId is null. This could lead to wrong behaviors as it happens in the quickstart project. Let's say we have a stateless home page with page parameters that are populated inside page constructor. Under these conditions class WebPageRenderer will call storeBufferedResponse and will redirect the response to the final URL (line 289). But as the session is temporary, the buffered response is not consumed and WebPageRenderer will rise a warning (line 194).

      I think we should check for null sessionId inside WebApplication or inside WebPageRender.

        Attachments

        1. wicket5578.tar.gz
          29 kB
          Andrea Del Bene

          Issue Links

            Activity

              People

              • Assignee:
                bitstorm Andrea Del Bene
                Reporter:
                bitstorm Andrea Del Bene
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: