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

URL IPv6 parsing

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.18.0, 7.0.0-M4
    • Fix Version/s: 7.0.0-M5, 6.19.0
    • Component/s: wicket
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: