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

Url can't parse urls with username and password

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.9.0, 1.5.11, 7.0.0-M1
    • 1.5.11, 6.10.0, 7.0.0-M1
    • wicket
    • None

    Description

      Url tries to parse the password as the portnumber, because it's after the :, resulting in the following exception:
      java.lang.NumberFormatException: For input string: "23dc429c-4ffa-4e99-8e24-984571f4c3b6@digdag-rest-dev2.topicusonderwijs.nl"
      java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      java.lang.Integer.parseInt(Integer.java:492)
      java.lang.Integer.parseInt(Integer.java:527)
      org.apache.wicket.request.Url.parse(Url.java:276)
      org.apache.wicket.request.Url.parse(Url.java:192)
      org.apache.wicket.protocol.http.servlet.ServletWebResponse.encodeRedirectURL(ServletWebResponse.java:212)
      org.apache.wicket.protocol.http.servlet.ServletWebResponse.sendRedirect(ServletWebResponse.java:236)
      org.apache.wicket.protocol.http.BufferedWebResponse$SendRedirectAction.invoke(BufferedWebResponse.java:400)
      org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:588)
      org.apache.wicket.protocol.http.HeaderBufferingWebResponse.stopBuffering(HeaderBufferingWebResponse.java:60)
      org.apache.wicket.protocol.http.HeaderBufferingWebResponse.flush(HeaderBufferingWebResponse.java:97)
      org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:269)
      org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
      org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)

      Attachments

        Activity

          People

            papegaaij Emond Papegaaij
            papegaaij Emond Papegaaij
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: