Changeset b4e2619 for apps


Ignore:
Timestamp:
Jan 18, 2019 11:35:36 AM (17 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
344c812
Parents:
6ca38307
Message:

Plugins: Fix loading of webapp configuration classes
on Jetty 9.4 by whitelisting them as allowed server classes
(ticket #2385)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/WebAppStarter.java

    r6ca38307 rb4e2619  
    140140            classNames = wac.getDefaultConfigurationClasses();
    141141        String[] newClassNames = new String[classNames.length + 1];
    142         for (int j = 0; j < classNames.length; j++)
     142        for (int j = 0; j < classNames.length; j++) {
    143143             newClassNames[j] = classNames[j];
     144             // fix for Jetty 9.4 ticket #2385
     145             wac.prependServerClass("-" + classNames[j]);
     146        }
    144147        newClassNames[classNames.length] = WebAppConfiguration.class.getName();
    145148        wac.setConfigurationClasses(newClassNames);
Note: See TracChangeset for help on using the changeset viewer.