[ https://issues.apache.org/jira/browse/WICKET-5259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emond Papegaaij resolved WICKET-5259. ------------------------------------- Resolution: Fixed Fix Version/s: 6.10.0 1.5.11 7.0.0 Fixed by skipping the credentials when searching for the port number, they are considered part of the host (which seems to work fine). > Url can't parse urls with username and password > ----------------------------------------------- > > Key: WICKET-5259 > URL: https://issues.apache.org/jira/browse/WICKET-5259 > Project: Wicket > Issue Type: Bug > Components: wicket > Affects Versions: 6.9.0, 7.0.0, 1.5.11 > Reporter: Emond Papegaaij > Assignee: Emond Papegaaij > Fix For: 7.0.0, 1.5.11, 6.10.0 > > > 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-984571f4c...@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) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira