You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parsing of input provided to the java.net.URL constructors has changed in this release to be more strict. If the URL constructors are called with malformed input, then MalformedURLException may be thrown for cases where it wasn’t thrown previously.
In previous releases, some of the parsing and validation performed by the JDK built-in URLStreamHander implementations was delayed until URL::openConnection or URLConnection::connect was called. Some of these parsing and validation actions are now performed early, within URL constructors. An exception caused by a malformed URL that would have been delayed until the connection was opened or connected might now cause a MalformedURLException to be thrown at URL construction time.
This change only affects URL instances that delegate to JDK built-in stream handler implementations. Applications relying on custom, third party URLStreamHandler implementations should remain unaffected.
A new JDK specific system property -Djdk.net.url.delayParsing or -Djdk.net.url.delayParsing=true can be specified on the command line to revert to the previous behavior. By default, the property is not set, and the new behavior is in place.
This new property is provided for backward compatibility and may be removed in a future release.
Stringurl = version < 0 ? _appbase : _appbase.replace("%VERSION%", String.valueOf(version));
returnHostWhitelist.verify(newURL(url));
}
IMO, Getdown should be strict on URLs at runtime, but not before runtime.
The text was updated successfully, but these errors were encountered:
reda-alaoui
changed the title
Starting with JDK 20 digest creation fails for dynamic appbase
Starting with JDK 20 digest creation fails on dynamic appbaseSep 7, 2023
reda-alaoui
changed the title
Starting with JDK 20 digest creation fails on dynamic appbase
Starting with JDK 20, digest creation fails on dynamic appbaseSep 7, 2023
For many years, at compilation, I have been generating a digest from a
getdown.txt
looking like this:The
appbase
variable is interpolated by the server at runtime, when the getdown client tries to downloadgetdown.txt
.This works until JDK 20. When compiling with JDK 20 the following error is thrown:
This is caused by https://www.oracle.com/java/technologies/javase/20-relnote-issues.html#JDK-8293590.
Looks like the solution would be to modify
getdown/core/src/main/java/com/threerings/getdown/data/Application.java
Lines 1491 to 1496 in 792f0a1
IMO, Getdown should be strict on URLs at runtime, but not before runtime.
The text was updated successfully, but these errors were encountered: