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

mounting @RequireHttps-annotated page after HttpsMapper instantiation ignores @RequireHttps annotation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5-RC2
    • 1.5-RC3
    • None
    • None

    Description

      Attached quickstart.

      Create a page, annotate it with @RequireHttps
      First instantiatie HttpsMapper
      Then mount the page.

      As a result, the page will not be recognized as an annotated page - links will render to http, and no redirection will take place when accessing.

      The workaround is simple, just instantiate the HttpsMapper last - maybe this is not a bug..
      However a warning or a check would help a lot. Maybe it shouldn't happen at all, and this is really a bug.

      Attachments

        1. httpsswitcher.tar.gz
          20 kB
          Antoine van Wel

        Activity

          People

            ivaynberg Igor Vaynberg
            zwiep Antoine van Wel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: