Description
Determining browser versions from the user agent can fail with an exception. As seen on our PROD environment for the following user agent:
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.01537112190982"
I'm not sure this is a valid UA, but Wicket should probably never fail with an exception in this case.
Details: java.lang.NumberFormatException: For input string: "01537112190982" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:583) at java.lang.Integer.parseInt(Integer.java:615) at org.apache.wicket.protocol.http.request.WebClientInfo.setMajorMinorVersionByPattern(WebClientInfo.java:354) at org.apache.wicket.protocol.http.request.WebClientInfo.setMozillaProperties(WebClientInfo.java:285) at org.apache.wicket.protocol.http.request.WebClientInfo.init(WebClientInfo.java:198) at org.apache.wicket.protocol.http.request.WebClientInfo.<init>(WebClientInfo.java:112) at org.apache.wicket.protocol.http.request.WebClientInfo.<init>(WebClientInfo.java:76) at org.apache.wicket.protocol.http.request.WebClientInfo.<init>(WebClientInfo.java:65) at org.apache.wicket.protocol.http.WebSession.getClientInfo(WebSession.java:88)
Attachments
Issue Links
- is related to
-
WICKET-6544 Chrome and Firefox on iOS detected as Safari - removed UserAgent
- Resolved