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

URL IPv6 parsing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.18.0, 7.0.0-M4
    • 7.0.0-M5, 6.19.0
    • wicket
    • None

    Description

      There is an issue with native IPv6 address parsing.
      "https://[::1]/myapp", URL parsing fails:

      org.apache.wicket.request.Url.parse("https://[::1]/myapp")
      generates an exception:
      java.lang.NumberFormatException: For input string: "1]"
      at java.lang.NumberFormatException.forInputString(
      NumberFormatException.java:65)
      at java.lang.Integer.parseInt(Integer.java:492)

      However, "https://[::1]:80/myapp" works as expected.

      Attachments

        Activity

          People

            bitstorm Andrea Del Bene
            guyw Guy Wuyts
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: