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

Form#getJsForInterfaceUrl(..) works not correct if cookies are disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.4
    • 1.5.5, 6.0.0-beta1
    • wicket
    • None

    Description

      When using a Checkbox with wantOnSelectionChangedNotifications() = true, the rendered onClick action is not correct because the ";" of the "..;jsessionid=.." is rendered as "%3Bjsessionid=..." and therefore the onSelectionChanged(..) method is not called.

      The reason for this missbehavior is that in the Form Class, Line 529 "url = renderer.renderUrl(Url.parse(url.toString()));" returns the %3B representation of the ";". This leads to the behavior that the MountedMapper can not find the according page for this request because the application thinks that the mounted page path is "myPath%3Bjsessionid=..." and not "myPath".

      You can reproduce this behavior in the attached quickstart, start in jetty for non cookie behavior.

      Attachments

        1. quickstart.zip
          32 kB
          Johannes Unterstein

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              junterstein Johannes Unterstein
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: