Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

Commit c925e32

Browse files
mukumawayaminikb
authored andcommitted
Fixes #21882 deserialization flaw (#21884)
1 parent c5be336 commit c925e32

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nucleus/common/mbeanserver/src/main/java/org/glassfish/admin/mbeanserver/JMXMPConnectorStarter.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040

4141
package org.glassfish.admin.mbeanserver;
4242

43-
import org.glassfish.grizzly.config.dom.Ssl;
4443
import org.glassfish.hk2.api.ServiceLocator;
4544

4645
import javax.management.MBeanServer;
@@ -120,6 +119,10 @@ private JMXConnectorServer startJMXMPConnectorServer(final int port)
120119
final Map<String, Object> env = new HashMap<String, Object>();
121120
env.put("jmx.remote.protocol.provider.pkgs", "com.sun.jmx.remote.protocol");
122121
env.put("jmx.remote.protocol.provider.class.loader", this.getClass().getClassLoader());
122+
env.put("jmx.remote.rmi.server.credential.types", new String[] {
123+
String[].class.getName(),
124+
String.class.getName() });
125+
123126
JMXAuthenticator authenticator = getAccessController();
124127
if (authenticator != null)
125128
{

0 commit comments

Comments
 (0)