forked from I2P_Developers/i2p.i2p
Plugins: Fix loading of webapp configuration classes
on Jetty 9.4 by whitelisting them as allowed server classes (ticket #2385)
This commit is contained in:
@ -139,8 +139,11 @@ public class WebAppStarter {
|
||||
if (classNames.length == 0)
|
||||
classNames = wac.getDefaultConfigurationClasses();
|
||||
String[] newClassNames = new String[classNames.length + 1];
|
||||
for (int j = 0; j < classNames.length; j++)
|
||||
for (int j = 0; j < classNames.length; j++) {
|
||||
newClassNames[j] = classNames[j];
|
||||
// fix for Jetty 9.4 ticket #2385
|
||||
wac.prependServerClass("-" + classNames[j]);
|
||||
}
|
||||
newClassNames[classNames.length] = WebAppConfiguration.class.getName();
|
||||
wac.setConfigurationClasses(newClassNames);
|
||||
}
|
||||
|
@ -1,4 +1,8 @@
|
||||
2019-01-18 zzz
|
||||
* Plugins: Fix loading of webapp configuration classes (ticket #2385)
|
||||
|
||||
2019-01-15 zzz
|
||||
* Debian: AppArmor updates (ticket #2319)
|
||||
* SusiMail:
|
||||
- Fix sending mail with attachments (ticket #2373)
|
||||
- Fix deleting attachments from drafts
|
||||
|
@ -18,7 +18,7 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 17;
|
||||
public final static long BUILD = 18;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "-rc";
|
||||
|
Reference in New Issue
Block a user