Wicket
  1. Wicket
  2. WICKET-4776

Problems with switching between HTTP/HTTPS

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.6, 1.5.7, 1.5.8, 6.0.0
    • Fix Version/s: 6.2.0, 1.5.9
    • Component/s: wicket
    • Labels:
      None

      Description

      Testcase, two Pages (A and B)
      Page A: two Links to Page B
      -Link1: setResponsePage(PageB.class);
      -Link2: setResponsePage(new PageB());

      Page B: "@RequireHttps", two Links to Page A
      -Link1: setResponsePage(PageA.class);
      -Link2: setResponsePage(new PageA());

      Clicking link1 behaves equal in every Version i tested. No Problems switching between Page A and B and HTTP/HTTPS-change is working like expected (except status 404 at Page B in 1.5.6).

      Clicking link2 behaves very strange.
      Link2-Behavior in different Versions:
      1.5.4/5 (and i guess older): Everything working correct like Link1.
      1.5.6: Status 404 on Both Links at Page B

      1.5.7/8/6.0.0:
      If i go from Page A to B, Page B isn't called with https.
      Now I'm on Page B an go to Page A, A is called WITH https?!?!
      Then, moving one more to B, https is switching again to http.

      This is very confusing, Page A without requireHttps is called with https, Page B with requireHttps is called without https?!
      This leads in most cases on my website to a "Page B" where Links/Buttons/etc aren't working anymore.

      1. myproject.zip
        20 kB
        Matthias Remy

        Issue Links

          Activity

          Hide
          Sven Meier added a comment -

          port and protocol is now preserved

          Show
          Sven Meier added a comment - port and protocol is now preserved
          Hide
          Sven Meier added a comment -

          intermediate relative url is missing port and protocol

          Show
          Sven Meier added a comment - intermediate relative url is missing port and protocol
          Hide
          Matthias Remy added a comment - - edited

          Added quickstart of the problem. Session bind doesn't change something.

          Show
          Matthias Remy added a comment - - edited Added quickstart of the problem. Session bind doesn't change something.
          Hide
          Martin Grigorov added a comment -

          Hi,

          Please attach a quickstart.Preferably for 6.0.0.
          I guess you need to call Session#bind() before going to HTTPS.

          Show
          Martin Grigorov added a comment - Hi, Please attach a quickstart.Preferably for 6.0.0. I guess you need to call Session#bind() before going to HTTPS.

            People

            • Assignee:
              Sven Meier
              Reporter:
              Matthias Remy
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development