5112b5efc0
Resolves: #2173872 Remove java-11-openjdk-headles as a tomcat dependency Resolves: #2181461 CVE-2023-28708 tomcat: not including the secure attribute causes information Resolves: #2210632 CVE-2023-28709 Resolves: #2184133 Add Obsoletes to tomcat package Update patch command Update source to use jws tomcat
41 lines
1.8 KiB
Diff
41 lines
1.8 KiB
Diff
diff --git a/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java b/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java
|
|
index f62f8d1..db19960 100644
|
|
--- a/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java
|
|
+++ b/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java
|
|
@@ -611,34 +611,28 @@ public class JmxRemoteLifecycleListener extends SSLHostConfig implements Lifecyc
|
|
* Better to use the internal API than re-invent the wheel.
|
|
*/
|
|
@SuppressWarnings("restriction")
|
|
- private static class JmxRegistry extends sun.rmi.registry.RegistryImpl {
|
|
+ private static class JmxRegistry {
|
|
private static final long serialVersionUID = -3772054804656428217L;
|
|
private final String jmxName;
|
|
private final Remote jmxServer;
|
|
public JmxRegistry(int port, RMIClientSocketFactory csf,
|
|
RMIServerSocketFactory ssf, String jmxName, Remote jmxServer) throws RemoteException {
|
|
- super(port, csf, ssf);
|
|
this.jmxName = jmxName;
|
|
this.jmxServer = jmxServer;
|
|
}
|
|
- @Override
|
|
public Remote lookup(String name)
|
|
throws RemoteException, NotBoundException {
|
|
return (jmxName.equals(name)) ? jmxServer : null;
|
|
}
|
|
- @Override
|
|
public void bind(String name, Remote obj)
|
|
throws RemoteException, AlreadyBoundException, AccessException {
|
|
}
|
|
- @Override
|
|
public void unbind(String name)
|
|
throws RemoteException, NotBoundException, AccessException {
|
|
}
|
|
- @Override
|
|
public void rebind(String name, Remote obj)
|
|
throws RemoteException, AccessException {
|
|
}
|
|
- @Override
|
|
public String[] list() throws RemoteException {
|
|
return new String[] { jmxName };
|
|
}
|