@@ -625,7 +654,7 @@
org.apache.maven.pluginsmaven-surefire-report-plugin
- 3.0.0-M5
+ 3.0.0-M6false
From ee31e7604783ba7ec306094a7583e44ff62ce18b Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed, 4 May 2022 19:56:28 +0000
Subject: [PATCH 071/973] Bump jackson-databind from 2.11.3 to 2.12.6.1
Bumps [jackson-databind](https://github.com/FasterXML/jackson) from 2.11.3 to 2.12.6.1.
- [Release notes](https://github.com/FasterXML/jackson/releases)
- [Commits](https://github.com/FasterXML/jackson/commits)
---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.core:jackson-databind
dependency-type: direct:production
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 7f4ea96f..c880cbff 100644
--- a/pom.xml
+++ b/pom.xml
@@ -420,7 +420,7 @@
com.fasterxml.jackson.corejackson-databind
- 2.11.3
+ 2.12.6.1
From ea704045aad20849a2f3dad486be35bad12bd6f0 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed, 4 May 2022 00:59:33 +0000
Subject: [PATCH 072/973] Bump netty.version from 4.1.72.Final to 4.1.76.Final
Bumps `netty.version` from 4.1.72.Final to 4.1.76.Final.
Updates `netty-all` from 4.1.72.Final to 4.1.76.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.72.Final...netty-4.1.76.Final)
Updates `netty-example` from 4.1.72.Final to 4.1.76.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.72.Final...netty-4.1.76.Final)
Updates `netty-buffer` from 4.1.72.Final to 4.1.76.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.72.Final...netty-4.1.76.Final)
Updates `netty-codec` from 4.1.72.Final to 4.1.76.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.72.Final...netty-4.1.76.Final)
Updates `netty-codec-haproxy` from 4.1.72.Final to 4.1.76.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.72.Final...netty-4.1.76.Final)
Updates `netty-codec-http` from 4.1.72.Final to 4.1.76.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.72.Final...netty-4.1.76.Final)
Updates `netty-codec-socks` from 4.1.72.Final to 4.1.76.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.72.Final...netty-4.1.76.Final)
Updates `netty-common` from 4.1.72.Final to 4.1.76.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.72.Final...netty-4.1.76.Final)
Updates `netty-handler` from 4.1.72.Final to 4.1.76.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.72.Final...netty-4.1.76.Final)
Updates `netty-handler-proxy` from 4.1.72.Final to 4.1.76.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.72.Final...netty-4.1.76.Final)
Updates `netty-transport` from 4.1.72.Final to 4.1.76.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.72.Final...netty-4.1.76.Final)
Updates `netty-transport-rxtx` from 4.1.72.Final to 4.1.76.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.72.Final...netty-4.1.76.Final)
Updates `netty-transport-sctp` from 4.1.72.Final to 4.1.76.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.72.Final...netty-4.1.76.Final)
Updates `netty-transport-udp` from 4.1.72.Final to 4.1.76.Final
---
updated-dependencies:
- dependency-name: io.netty:netty-all
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-example
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-buffer
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-haproxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-http
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-socks
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-common
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler-proxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-rxtx
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-sctp
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-udp
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index c880cbff..fba3e109 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
UTF-8UTF-8github
- 4.1.72.Final
+ 4.1.76.Final1.7.321.8
From e2bc05b547a614fc28be8cfb53c42d372b24d6c3 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed, 4 May 2022 00:59:45 +0000
Subject: [PATCH 073/973] Bump maven-project-info-reports-plugin from 3.1.1 to
3.3.0
Bumps [maven-project-info-reports-plugin](https://github.com/apache/maven-project-info-reports-plugin) from 3.1.1 to 3.3.0.
- [Release notes](https://github.com/apache/maven-project-info-reports-plugin/releases)
- [Commits](https://github.com/apache/maven-project-info-reports-plugin/compare/maven-project-info-reports-plugin-3.1.1...maven-project-info-reports-plugin-3.3.0)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-project-info-reports-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index fba3e109..ab456709 100644
--- a/pom.xml
+++ b/pom.xml
@@ -643,7 +643,7 @@
org.apache.maven.pluginsmaven-project-info-reports-plugin
- 3.1.1
+ 3.3.0
From d21d72e6b27b8250b9a429f9893ba635ca438dda Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed, 4 May 2022 00:59:35 +0000
Subject: [PATCH 074/973] Bump nexus-staging-maven-plugin from 1.6.8 to 1.6.13
Bumps nexus-staging-maven-plugin from 1.6.8 to 1.6.13.
---
updated-dependencies:
- dependency-name: org.sonatype.plugins:nexus-staging-maven-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ab456709..7dcf0d81 100644
--- a/pom.xml
+++ b/pom.xml
@@ -528,7 +528,7 @@
org.sonatype.pluginsnexus-staging-maven-plugin
- 1.6.8
+ 1.6.13
From fc2c97ccd8287dd51a38da8a3f215947fa9473de Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Thu, 5 May 2022 00:05:16 +0300
Subject: [PATCH 075/973] update dependencies
---
pom.xml | 51 ++++++++++---------
.../extras/SelfSignedMitmManagerTest.java | 2 +-
2 files changed, 27 insertions(+), 26 deletions(-)
diff --git a/pom.xml b/pom.xml
index 7dcf0d81..32791902 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,7 +15,7 @@
UTF-8github4.1.76.Final
- 1.7.32
+ 1.7.361.8
@@ -176,13 +176,13 @@
com.google.guavaguava
- 30.1-jre
+ 31.1-jrecommons-clicommons-cli
- 1.4
+ 1.5.0true
@@ -190,13 +190,13 @@
org.apache.commonscommons-lang3
- 3.11
+ 3.12.0junitjunit
- 4.13.1
+ 4.13.2test
@@ -210,21 +210,21 @@
org.eclipse.jettyjetty-server
- 9.4.41.v20210516
+ 9.4.46.v20220331testorg.mockitomockito-core
- 3.6.0
+ 4.5.1testorg.mock-servermockserver-netty
- 5.11.2
+ 5.13.2test
@@ -250,7 +250,7 @@
org.apache.logging.log4jlog4j-core
- 2.17.1
+ 2.17.2true
@@ -293,7 +293,7 @@
dnsjavadnsjava
- 3.3.1
+ 3.5.0true
@@ -420,7 +420,8 @@
com.fasterxml.jackson.corejackson-databind
- 2.12.6.1
+ 2.13.2.2
+ bundle
@@ -431,13 +432,13 @@
org.apache.maven.pluginsmaven-enforcer-plugin
- 3.0.0-M3
+ 3.0.0org.apache.maven.pluginsmaven-site-plugin
- 3.9.1
+ 3.12.0
@@ -449,25 +450,25 @@
org.apache.maven.pluginsmaven-dependency-plugin
- 3.1.2
+ 3.3.0org.apache.maven.pluginsmaven-clean-plugin
- 3.1.0
+ 3.2.0org.apache.maven.pluginsmaven-deploy-plugin
- 3.0.0-M1
+ 3.0.0-M2org.apache.maven.pluginsmaven-compiler-plugin
- 3.8.1
+ 3.10.1${java.version}${java.version}
@@ -484,7 +485,7 @@
org.apache.maven.pluginsmaven-jar-plugin
- 3.2.0
+ 3.2.2
@@ -502,7 +503,7 @@
org.apache.maven.pluginsmaven-javadoc-plugin
- 3.2.0
+ 3.4.0all,-missingprivate
@@ -516,7 +517,7 @@
org.apache.maven.pluginsmaven-surefire-plugin
- 2.22.2
+ 3.0.0-M6
@@ -556,7 +557,7 @@
org.apache.maven.pluginsmaven-shade-plugin
- 3.2.4
+ 3.3.0package
@@ -663,7 +664,7 @@
org.apache.maven.pluginsmaven-checkstyle-plugin
- 3.0.1
+ 3.1.2
@@ -697,13 +698,13 @@
org.apache.maven.pluginsmaven-jxr-plugin
- 3.0.0
+ 3.2.0org.apache.maven.pluginsmaven-pmd-plugin
- 3.13.0
+ 3.16.0trueutf-8
@@ -715,7 +716,7 @@
org.codehaus.mojoversions-maven-plugin
- 2.8.1
+ 2.10.0
diff --git a/src/test/java/org/littleshoot/proxy/extras/SelfSignedMitmManagerTest.java b/src/test/java/org/littleshoot/proxy/extras/SelfSignedMitmManagerTest.java
index 20b5b7df..b49a745e 100644
--- a/src/test/java/org/littleshoot/proxy/extras/SelfSignedMitmManagerTest.java
+++ b/src/test/java/org/littleshoot/proxy/extras/SelfSignedMitmManagerTest.java
@@ -40,6 +40,6 @@ public void testClientSslEngineFor() {
SSLEngine engine = mock(SSLEngine.class);
when(source.newSslEngine()).thenReturn(engine);
assertEquals(engine, manager.clientSslEngineFor(request, session));
- verifyZeroInteractions(request, session);
+ verifyNoMoreInteractions(request, session);
}
}
From f3071e9cc5c09c5e8d3d782fa51a03f2e29da7c4 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Thu, 5 May 2022 08:56:30 +0300
Subject: [PATCH 076/973] remove Travis CI configuration
now we build the project with github actions
---
.travis.yml | 11 -----------
README.md | 1 -
src/test/java/org/littleshoot/proxy/IdleTest.java | 1 -
3 files changed, 13 deletions(-)
delete mode 100644 .travis.yml
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 157dca99..00000000
--- a/.travis.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-sudo: false
-
-language: java
-dist: trusty
-jdk:
- - oraclejdk8
- - openjdk11
-
-cache:
- directories:
- - $HOME/.m2
diff --git a/README.md b/README.md
index f367b7cc..342d5157 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,3 @@
-[](https://travis-ci.com/mrog/LittleProxy)
[](https://depshield.github.io)
This is an updated fork of adamfisk's LittleProxy. The original project appears
diff --git a/src/test/java/org/littleshoot/proxy/IdleTest.java b/src/test/java/org/littleshoot/proxy/IdleTest.java
index bfcc638f..a76897d4 100644
--- a/src/test/java/org/littleshoot/proxy/IdleTest.java
+++ b/src/test/java/org/littleshoot/proxy/IdleTest.java
@@ -32,7 +32,6 @@ public class IdleTest {
@Before
public void setup() throws Exception {
assumeTrue("Skipping due to non-Unix OS", TestUtils.isUnixManagementCapable());
- assumeFalse("Skipping for travis-ci build", "true".equals(System.getenv("TRAVIS")));
assumeFalse("Skipping due to Mac OS", System.getProperty("os.name").toLowerCase().contains("mac"));
webServer = new Server(0);
From c8e30218da63d8596335e6486ea5528e40a44430 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Thu, 5 May 2022 09:00:38 +0300
Subject: [PATCH 077/973] un-ignore tests that seem to become faster/green with
PR #26 ("TLS 1.3 handshake bugfix")
---
pom.xml | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/pom.xml b/pom.xml
index 32791902..4749991b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -62,16 +62,14 @@
- org/littleshoot/proxy/websockets/*
- org/littleshoot/proxy/BadClientAuthenticationTCPChainedProxyTest*org/littleshoot/proxy/EncryptedUDTChainedProxyTest*
- org/littleshoot/proxy/MitmWithBadClientAuthenticationTCPChainedProxyTest*org/littleshoot/proxy/MitmWithEncryptedUDTChainedProxyTest*org/littleshoot/proxy/MitmWithUnencryptedUDTChainedProxyTest*org/littleshoot/proxy/UnencryptedUDTChainedProxyTest*org/littleshoot/proxy/VariableSpeedClientServerTest*
+ org/littleshoot/proxy/websockets/*org/littleshoot/proxy/KeepAliveTest*org/littleshoot/proxy/IdlingProxyTest*org/littleshoot/proxy/ThrottlingTest*
From 9b60995e489ec161dca523e3904b6207a9ef81a5 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Thu, 5 May 2022 09:24:27 +0300
Subject: [PATCH 078/973] ignore tests only on MacOS and still run on Linux
---
pom.xml | 7 -------
.../org/littleshoot/proxy/BaseChainedProxyTest.java | 4 +++-
.../proxy/EncryptedUDTChainedProxyTest.java | 7 +++++++
src/test/java/org/littleshoot/proxy/IdleTest.java | 8 ++++----
.../proxy/MitmWithEncryptedUDTChainedProxyTest.java | 7 +++++++
.../proxy/MitmWithUnencryptedUDTChainedProxyTest.java | 8 ++++++++
src/test/java/org/littleshoot/proxy/TestUtils.java | 11 +++++++++++
.../proxy/UnencryptedUDTChainedProxyTest.java | 8 ++++++++
8 files changed, 48 insertions(+), 12 deletions(-)
diff --git a/pom.xml b/pom.xml
index 4749991b..cc389440 100644
--- a/pom.xml
+++ b/pom.xml
@@ -61,13 +61,6 @@
maven-surefire-plugin
-
- org/littleshoot/proxy/EncryptedUDTChainedProxyTest*
- org/littleshoot/proxy/MitmWithEncryptedUDTChainedProxyTest*
- org/littleshoot/proxy/MitmWithUnencryptedUDTChainedProxyTest*
- org/littleshoot/proxy/UnencryptedUDTChainedProxyTest*
- org/littleshoot/proxy/VariableSpeedClientServerTest*
-
org/littleshoot/proxy/websockets/*org/littleshoot/proxy/KeepAliveTest*
diff --git a/src/test/java/org/littleshoot/proxy/BaseChainedProxyTest.java b/src/test/java/org/littleshoot/proxy/BaseChainedProxyTest.java
index 0c901390..a112cbf0 100644
--- a/src/test/java/org/littleshoot/proxy/BaseChainedProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/BaseChainedProxyTest.java
@@ -76,7 +76,9 @@ protected ChainedProxy newChainedProxy() {
@Override
protected void tearDown() {
- this.upstreamProxy.abort();
+ if (upstreamProxy != null) {
+ upstreamProxy.abort();
+ }
}
@Override
diff --git a/src/test/java/org/littleshoot/proxy/EncryptedUDTChainedProxyTest.java b/src/test/java/org/littleshoot/proxy/EncryptedUDTChainedProxyTest.java
index f657629d..83569f7f 100644
--- a/src/test/java/org/littleshoot/proxy/EncryptedUDTChainedProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/EncryptedUDTChainedProxyTest.java
@@ -1,15 +1,22 @@
package org.littleshoot.proxy;
+import org.junit.BeforeClass;
import org.littleshoot.proxy.extras.SelfSignedSslEngineSource;
import javax.net.ssl.SSLEngine;
+import static org.littleshoot.proxy.TestUtils.disableOnMac;
import static org.littleshoot.proxy.TransportProtocol.UDT;
public class EncryptedUDTChainedProxyTest extends BaseChainedProxyTest {
private final SslEngineSource sslEngineSource = new SelfSignedSslEngineSource(
"chain_proxy_keystore_1.jks");
+ @BeforeClass
+ public static void beforeClass() {
+ disableOnMac();
+ }
+
@Override
protected HttpProxyServerBootstrap upstreamProxy() {
return super.upstreamProxy()
diff --git a/src/test/java/org/littleshoot/proxy/IdleTest.java b/src/test/java/org/littleshoot/proxy/IdleTest.java
index a76897d4..7102bdff 100644
--- a/src/test/java/org/littleshoot/proxy/IdleTest.java
+++ b/src/test/java/org/littleshoot/proxy/IdleTest.java
@@ -13,8 +13,8 @@
import static org.hamcrest.Matchers.lessThan;
import static org.junit.Assert.assertThat;
-import static org.junit.Assume.assumeFalse;
-import static org.junit.Assume.assumeTrue;
+import static org.littleshoot.proxy.TestUtils.disableOnMac;
+import static org.littleshoot.proxy.TestUtils.requireUnix;
/**
* Note - this test only works on UNIX systems because it checks file descriptor
@@ -31,8 +31,8 @@ public class IdleTest {
@Before
public void setup() throws Exception {
- assumeTrue("Skipping due to non-Unix OS", TestUtils.isUnixManagementCapable());
- assumeFalse("Skipping due to Mac OS", System.getProperty("os.name").toLowerCase().contains("mac"));
+ requireUnix();
+ disableOnMac();
webServer = new Server(0);
webServer.start();
diff --git a/src/test/java/org/littleshoot/proxy/MitmWithEncryptedUDTChainedProxyTest.java b/src/test/java/org/littleshoot/proxy/MitmWithEncryptedUDTChainedProxyTest.java
index b259a7f9..f102ff68 100644
--- a/src/test/java/org/littleshoot/proxy/MitmWithEncryptedUDTChainedProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/MitmWithEncryptedUDTChainedProxyTest.java
@@ -1,15 +1,22 @@
package org.littleshoot.proxy;
+import org.junit.BeforeClass;
import org.littleshoot.proxy.extras.SelfSignedSslEngineSource;
import javax.net.ssl.SSLEngine;
+import static org.littleshoot.proxy.TestUtils.disableOnMac;
import static org.littleshoot.proxy.TransportProtocol.UDT;
public class MitmWithEncryptedUDTChainedProxyTest extends MitmWithChainedProxyTest {
private final SslEngineSource sslEngineSource = new SelfSignedSslEngineSource(
"chain_proxy_keystore_1.jks");
+ @BeforeClass
+ public static void beforeClass() {
+ disableOnMac();
+ }
+
@Override
protected HttpProxyServerBootstrap upstreamProxy() {
return super.upstreamProxy()
diff --git a/src/test/java/org/littleshoot/proxy/MitmWithUnencryptedUDTChainedProxyTest.java b/src/test/java/org/littleshoot/proxy/MitmWithUnencryptedUDTChainedProxyTest.java
index 18fb0b34..f9722d8e 100644
--- a/src/test/java/org/littleshoot/proxy/MitmWithUnencryptedUDTChainedProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/MitmWithUnencryptedUDTChainedProxyTest.java
@@ -1,8 +1,16 @@
package org.littleshoot.proxy;
+import org.junit.BeforeClass;
+
+import static org.littleshoot.proxy.TestUtils.disableOnMac;
import static org.littleshoot.proxy.TransportProtocol.UDT;
public class MitmWithUnencryptedUDTChainedProxyTest extends MitmWithChainedProxyTest {
+ @BeforeClass
+ public static void beforeClass() {
+ disableOnMac();
+ }
+
@Override
protected HttpProxyServerBootstrap upstreamProxy() {
return super.upstreamProxy()
diff --git a/src/test/java/org/littleshoot/proxy/TestUtils.java b/src/test/java/org/littleshoot/proxy/TestUtils.java
index f2332b50..e8669b04 100644
--- a/src/test/java/org/littleshoot/proxy/TestUtils.java
+++ b/src/test/java/org/littleshoot/proxy/TestUtils.java
@@ -34,6 +34,9 @@
import java.security.SecureRandom;
import java.util.Objects;
+import static org.junit.Assume.assumeFalse;
+import static org.junit.Assume.assumeTrue;
+
public class TestUtils {
public static final RequestConfig REQUEST_TIMEOUT_CONFIG = RequestConfig.custom().setConnectTimeout(5000).build();
@@ -292,6 +295,14 @@ public static boolean isUnixManagementCapable() {
return (osMxBean instanceof UnixOperatingSystemMXBean);
}
+ public static void requireUnix() {
+ assumeTrue("Skipping test on non-Unix OS", isUnixManagementCapable());
+ }
+
+ public static void disableOnMac() {
+ assumeFalse("Skipping test on Mac OS", System.getProperty("os.name").toLowerCase().contains("mac"));
+ }
+
/**
* Creates a DefaultHttpClient instance.
*
diff --git a/src/test/java/org/littleshoot/proxy/UnencryptedUDTChainedProxyTest.java b/src/test/java/org/littleshoot/proxy/UnencryptedUDTChainedProxyTest.java
index 33b574ae..4041e194 100644
--- a/src/test/java/org/littleshoot/proxy/UnencryptedUDTChainedProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/UnencryptedUDTChainedProxyTest.java
@@ -1,8 +1,16 @@
package org.littleshoot.proxy;
+import org.junit.BeforeClass;
+
+import static org.littleshoot.proxy.TestUtils.disableOnMac;
import static org.littleshoot.proxy.TransportProtocol.UDT;
public class UnencryptedUDTChainedProxyTest extends BaseChainedProxyTest {
+ @BeforeClass
+ public static void beforeClass() {
+ disableOnMac();
+ }
+
@Override
protected HttpProxyServerBootstrap upstreamProxy() {
return super.upstreamProxy()
From 947a49ec73c997482c28e37f9ae97f244a8106ff Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Thu, 5 May 2022 09:38:21 +0300
Subject: [PATCH 079/973] mark slow tests with an annotation
@Category(SlowTest.class)
so we don't need to list them explicitly in pom.xml
---
pom.xml | 8 +-------
.../littleshoot/proxy/IdlingProxyTest.java | 2 ++
.../org/littleshoot/proxy/KeepAliveTest.java | 19 ++++++++++++++++---
.../java/org/littleshoot/proxy/SlowTest.java | 4 ++++
.../org/littleshoot/proxy/ThrottlingTest.java | 2 ++
.../websockets/WebSocketClientServerTest.java | 3 +++
6 files changed, 28 insertions(+), 10 deletions(-)
create mode 100644 src/test/java/org/littleshoot/proxy/SlowTest.java
diff --git a/pom.xml b/pom.xml
index cc389440..9f33bdf4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -60,13 +60,7 @@
org.apache.maven.pluginsmaven-surefire-plugin
-
-
- org/littleshoot/proxy/websockets/*
- org/littleshoot/proxy/KeepAliveTest*
- org/littleshoot/proxy/IdlingProxyTest*
- org/littleshoot/proxy/ThrottlingTest*
-
+ org.littleshoot.proxy.SlowTest
diff --git a/src/test/java/org/littleshoot/proxy/IdlingProxyTest.java b/src/test/java/org/littleshoot/proxy/IdlingProxyTest.java
index 1132c3a2..5c555d18 100644
--- a/src/test/java/org/littleshoot/proxy/IdlingProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/IdlingProxyTest.java
@@ -1,12 +1,14 @@
package org.littleshoot.proxy;
import org.junit.Test;
+import org.junit.experimental.categories.Category;
import static org.junit.Assert.assertEquals;
/**
* Tests just a single basic proxy.
*/
+@Category(SlowTest.class)
public class IdlingProxyTest extends AbstractProxyTest {
@Override
protected void setUp() {
diff --git a/src/test/java/org/littleshoot/proxy/KeepAliveTest.java b/src/test/java/org/littleshoot/proxy/KeepAliveTest.java
index a50eb3f8..3b72b686 100644
--- a/src/test/java/org/littleshoot/proxy/KeepAliveTest.java
+++ b/src/test/java/org/littleshoot/proxy/KeepAliveTest.java
@@ -1,9 +1,16 @@
package org.littleshoot.proxy;
-import io.netty.handler.codec.http.*;
+import io.netty.handler.codec.http.DefaultFullHttpResponse;
+import io.netty.handler.codec.http.HttpObject;
+import io.netty.handler.codec.http.HttpRequest;
+import io.netty.handler.codec.http.HttpResponse;
+import io.netty.handler.codec.http.HttpResponseStatus;
+import io.netty.handler.codec.http.HttpUtil;
+import io.netty.handler.codec.http.HttpVersion;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
+import org.junit.experimental.categories.Category;
import org.littleshoot.proxy.impl.DefaultHttpProxyServer;
import org.littleshoot.proxy.test.SocketClientUtil;
import org.mockserver.integration.ClientAndServer;
@@ -15,14 +22,20 @@
import java.util.Locale;
import java.util.concurrent.TimeUnit;
-import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.Matchers.containsString;
+import static org.hamcrest.Matchers.endsWith;
+import static org.hamcrest.Matchers.is;
+import static org.hamcrest.Matchers.startsWith;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertThat;
+import static org.junit.Assert.assertTrue;
import static org.mockserver.model.HttpRequest.request;
import static org.mockserver.model.HttpResponse.response;
/**
* This class tests the proxy's keep alive/connection closure behavior.
*/
+@Category(SlowTest.class)
public class KeepAliveTest {
private HttpProxyServer proxyServer;
diff --git a/src/test/java/org/littleshoot/proxy/SlowTest.java b/src/test/java/org/littleshoot/proxy/SlowTest.java
new file mode 100644
index 00000000..95ae256f
--- /dev/null
+++ b/src/test/java/org/littleshoot/proxy/SlowTest.java
@@ -0,0 +1,4 @@
+package org.littleshoot.proxy;
+
+public interface SlowTest {
+}
diff --git a/src/test/java/org/littleshoot/proxy/ThrottlingTest.java b/src/test/java/org/littleshoot/proxy/ThrottlingTest.java
index 1c0d6e4f..8e1e354a 100644
--- a/src/test/java/org/littleshoot/proxy/ThrottlingTest.java
+++ b/src/test/java/org/littleshoot/proxy/ThrottlingTest.java
@@ -12,6 +12,7 @@
import org.junit.Before;
import org.junit.FixMethodOrder;
import org.junit.Test;
+import org.junit.experimental.categories.Category;
import org.junit.runners.MethodSorters;
import org.littleshoot.proxy.impl.DefaultHttpProxyServer;
@@ -22,6 +23,7 @@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
+@Category(SlowTest.class)
@FixMethodOrder(MethodSorters.JVM)
public class ThrottlingTest {
private static final int LARGE_DATA_SIZE = 200000;
diff --git a/src/test/java/org/littleshoot/proxy/websockets/WebSocketClientServerTest.java b/src/test/java/org/littleshoot/proxy/websockets/WebSocketClientServerTest.java
index 9ee2afc6..df01f8cb 100644
--- a/src/test/java/org/littleshoot/proxy/websockets/WebSocketClientServerTest.java
+++ b/src/test/java/org/littleshoot/proxy/websockets/WebSocketClientServerTest.java
@@ -14,13 +14,16 @@
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
+import org.junit.experimental.categories.Category;
import org.littleshoot.proxy.HttpProxyServer;
import org.littleshoot.proxy.HttpProxyServerBootstrap;
+import org.littleshoot.proxy.SlowTest;
import org.littleshoot.proxy.extras.SelfSignedMitmManager;
import org.littleshoot.proxy.impl.DefaultHttpProxyServer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+@Category(SlowTest.class)
public class WebSocketClientServerTest {
private static final Duration CONNECT_TIMEOUT = Duration.ofSeconds(5);
private static final Duration RESPONSE_TIMEOUT = Duration.ofSeconds(5);
From 6591a2f964d7c12fde29cd5d65921c1e7398e887 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Fri, 6 May 2022 19:22:44 +0300
Subject: [PATCH 080/973] update organization name
the project was moved from "mrog" account to "LittleProxy" organization
---
README.md | 4 ++--
pom.xml | 19 ++++++++++++++-----
2 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index 342d5157..a29f316a 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-[](https://depshield.github.io)
+[](https://depshield.github.io)
This is an updated fork of adamfisk's LittleProxy. The original project appears
to have been abondoned. Because it's so incredibly useful, it's being brought
@@ -11,7 +11,7 @@ stable, performs well, and is easy to integrate into your projects.
One option is to clone LittleProxy and run it from the command line. This is as simple as:
```
-$ git clone git@github.com:mrog/LittleProxy.git
+$ git clone git@github.com:LittleProxy/LittleProxy.git
$ cd LittleProxy
$ ./run.bash
```
diff --git a/pom.xml b/pom.xml
index 9f33bdf4..ebac0b4d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,7 +8,7 @@
LittleProxy is a high performance HTTP proxy written in Java and using the Netty networking framework.
- https://github.com/mrog/LittleProxy
+ https://github.com/LittleProxy/LittleProxyUTF-8
@@ -28,13 +28,13 @@
github
- https://github.com/mrog/LittleProxy/issues
+ https://github.com/LittleProxy/LittleProxy/issues
- scm:git:https://github.com/mrog/LittleProxy.git
- scm:git:git@github.com:mrog/LittleProxy.git
- scm:git:https://github.com/mrog/LittleProxy
+ scm:git:https://github.com/LittleProxy/LittleProxy.git
+ scm:git:git@github.com:LittleProxy/LittleProxy.git
+ scm:git:https://github.com/LittleProxy/LittleProxyHEAD
@@ -743,5 +743,14 @@
Developer-7
+
+ asolntsev
+ Andrei Solntsev
+ andrei.solntsev+littleproxy@gmail.com
+ LittleProxy
+ https://github.com/LittleProxy
+ Maintainer
+ +3
+
From 3fa2c26e873e188a8d61c7dcf4a4e29d2fedd282 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Fri, 6 May 2022 19:26:12 +0300
Subject: [PATCH 081/973] remove DepShield Badge from readme
it doesn't work anymore after moving the project to "LittleProxy" organisation, and I have no idea how to fix it.
---
README.md | 2 --
1 file changed, 2 deletions(-)
diff --git a/README.md b/README.md
index a29f316a..685a0a43 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,3 @@
-[](https://depshield.github.io)
-
This is an updated fork of adamfisk's LittleProxy. The original project appears
to have been abondoned. Because it's so incredibly useful, it's being brought
back to life in this repository.
From b14614454dcf236f5d90f2b9b58455b52aa6c7bc Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Fri, 6 May 2022 19:59:29 +0300
Subject: [PATCH 082/973] fix typos
---
Netty_4_Upgrade_Notes.md | 2 +-
README.md | 2 +-
RELEASE_NOTES.md | 2 +-
pom.xml | 2 +-
.../java/org/littleshoot/proxy/ChainedProxy.java | 4 ++--
.../org/littleshoot/proxy/DefaultHostResolver.java | 4 ++--
src/main/java/org/littleshoot/proxy/HttpFilters.java | 2 +-
.../littleshoot/proxy/HttpProxyServerBootstrap.java | 2 +-
.../proxy/impl/ClientToProxyConnection.java | 12 ++++++------
.../proxy/impl/ProxyConnectionLogger.java | 6 +++---
.../java/org/littleshoot/proxy/BaseProxyTest.java | 6 +++---
.../org/littleshoot/proxy/EndToEndStoppingTest.java | 2 +-
.../java/org/littleshoot/proxy/MitmProxyTest.java | 4 ++--
.../littleshoot/proxy/MitmWithChainedProxyTest.java | 4 ++--
14 files changed, 27 insertions(+), 27 deletions(-)
diff --git a/Netty_4_Upgrade_Notes.md b/Netty_4_Upgrade_Notes.md
index 53fab01d..414fc93f 100644
--- a/Netty_4_Upgrade_Notes.md
+++ b/Netty_4_Upgrade_Notes.md
@@ -21,7 +21,7 @@ Relevant Changes
* DefaultChannelGroup?
-* SimpleChannelUpstreamHandler -> SimpleChanneInboundHandler
+* SimpleChannelUpstreamHandler -> SimpleChannelInboundHandler
* InterestOps is gone - what does this mean to setReadable() and
channelInterestChanged() ?
diff --git a/README.md b/README.md
index 685a0a43..ea495588 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
This is an updated fork of adamfisk's LittleProxy. The original project appears
-to have been abondoned. Because it's so incredibly useful, it's being brought
+to have been abandoned. Because it's so incredibly useful, it's being brought
back to life in this repository.
LittleProxy is a high performance HTTP proxy written in Java atop Trustin Lee's
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 409e30b4..1cd1c836 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -50,7 +50,7 @@
- Fixed memoryLeak in ClientToProxyConnection
- 2.0.0-beta-4
- - Allow users to set their own sesrvergroup within the bootstrap helper
+ - Allow users to set their own server group within the bootstrap helper
- Added support for chained SOCKS proxies
- 2.0.0-beta-3
diff --git a/pom.xml b/pom.xml
index ebac0b4d..6136afa2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -308,7 +308,7 @@
io.netty
diff --git a/src/main/java/org/littleshoot/proxy/ChainedProxy.java b/src/main/java/org/littleshoot/proxy/ChainedProxy.java
index d39d0f09..95f7f69e 100644
--- a/src/main/java/org/littleshoot/proxy/ChainedProxy.java
+++ b/src/main/java/org/littleshoot/proxy/ChainedProxy.java
@@ -58,7 +58,7 @@ public interface ChainedProxy extends SslEngineSource {
String getPassword();
/**
- * Implement this method to tell LittleProxy whether or not to encrypt
+ * Implement this method to tell LittleProxy whether to encrypt
* connections to the chained proxy for the given request. If true,
* LittleProxy will call {@link SslEngineSource#newSslEngine()} to obtain an
* SSLContext used by the downstream proxy.
@@ -81,7 +81,7 @@ public interface ChainedProxy extends SslEngineSource {
* Called to let us know that connecting to this proxy failed.
*
* @param cause
- * exception that caused this failure (may be null)
+ * exception that caused this failure (maybe null)
*/
void connectionFailed(Throwable cause);
diff --git a/src/main/java/org/littleshoot/proxy/DefaultHostResolver.java b/src/main/java/org/littleshoot/proxy/DefaultHostResolver.java
index 3519dcd9..ec2c5dcb 100644
--- a/src/main/java/org/littleshoot/proxy/DefaultHostResolver.java
+++ b/src/main/java/org/littleshoot/proxy/DefaultHostResolver.java
@@ -12,7 +12,7 @@ public class DefaultHostResolver implements HostResolver {
@Override
public InetSocketAddress resolve(String host, int port)
throws UnknownHostException {
- InetAddress addr = InetAddress.getByName(host);
- return new InetSocketAddress(addr, port);
+ InetAddress address = InetAddress.getByName(host);
+ return new InetSocketAddress(address, port);
}
}
diff --git a/src/main/java/org/littleshoot/proxy/HttpFilters.java b/src/main/java/org/littleshoot/proxy/HttpFilters.java
index b99779eb..a725a6f8 100644
--- a/src/main/java/org/littleshoot/proxy/HttpFilters.java
+++ b/src/main/java/org/littleshoot/proxy/HttpFilters.java
@@ -63,7 +63,7 @@
*
proxyToServerRequestSending
*
proxyToServerRequestSent
*
serverToProxyResponseReceiving
- *
serverToProxyResponse (can be multiple if chuncked)
+ *
serverToProxyResponse (can be multiple if chunked)
*
serverToProxyResponseReceived
*
proxyToClientResponse
*
diff --git a/src/main/java/org/littleshoot/proxy/HttpProxyServerBootstrap.java b/src/main/java/org/littleshoot/proxy/HttpProxyServerBootstrap.java
index 5ef9075c..ec9a3e0e 100644
--- a/src/main/java/org/littleshoot/proxy/HttpProxyServerBootstrap.java
+++ b/src/main/java/org/littleshoot/proxy/HttpProxyServerBootstrap.java
@@ -243,7 +243,7 @@ HttpProxyServerBootstrap withConnectTimeout(
HttpProxyServerBootstrap withThrottling(long readThrottleBytesPerSecond, long writeThrottleBytesPerSecond);
/**
- * All outgoing-communication of the proxy-instance is goin' to be routed via the given network-interface
+ * All outgoing-communication of the proxy-instance is going' to be routed via the given network-interface
*
* @param inetSocketAddress to be used for outgoing communication
*/
diff --git a/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java b/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
index edc6955b..796b1db2 100644
--- a/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
+++ b/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
@@ -144,7 +144,7 @@ public class ClientToProxyConnection extends ProxyConnection {
private volatile SSLSession clientSslSession;
/**
- * Tracks whether or not this ClientToProxyConnection is current doing MITM.
+ * Tracks whether this ClientToProxyConnection is current doing MITM.
*/
private volatile boolean mitming = false;
@@ -384,7 +384,7 @@ OPTIONS request (as detailed below), a client MUST send the target
URI in absolute-form as the request-target.
[...]
An example absolute-form of request-line would be:
- GET http://www.example.org/pub/WWW/TheProject.html HTTP/1.1
+ GET http://www.example.org/pub/WWW/TheProject.html HTTP/1.1
To allow for transition to the absolute-form for all requests in some
future version of HTTP, a server MUST accept the absolute-form in
requests, even though HTTP/1.1 clients will only send them in
@@ -454,11 +454,11 @@ void respond(ProxyToServerConnection serverConnection, HttpFilters filters,
return;
}
- boolean isSwithchingToWebSocketProtocol = false;
+ boolean isSwitchingToWebSocketProtocol = false;
if (httpObject instanceof HttpResponse) {
HttpResponse httpResponse = (HttpResponse) httpObject;
- isSwithchingToWebSocketProtocol = ProxyUtils.isSwitchingToWebSocketProtocol(httpResponse);
+ isSwitchingToWebSocketProtocol = ProxyUtils.isSwitchingToWebSocketProtocol(httpResponse);
// if this HttpResponse does not have any means of signaling the end of the message body other than closing
// the connection, convert the message to a "Transfer-Encoding: chunked" HTTP response. This avoids the need
@@ -496,7 +496,7 @@ void respond(ProxyToServerConnection serverConnection, HttpFilters filters,
if (ProxyUtils.isLastChunk(httpObject)) {
writeEmptyBuffer();
}
- else if (isSwithchingToWebSocketProtocol) {
+ else if (isSwitchingToWebSocketProtocol) {
switchToWebSocketProtocol(serverConnection);
}
@@ -1472,7 +1472,7 @@ private void recordClientSSLHandshakeSucceeded() {
clientAddress, clientSslSession);
}
} catch (Exception e) {
- LOG.error("Unable to recorClientSSLHandshakeSucceeded", e);
+ LOG.error("Unable to recordClientSSLHandshakeSucceeded", e);
}
}
diff --git a/src/main/java/org/littleshoot/proxy/impl/ProxyConnectionLogger.java b/src/main/java/org/littleshoot/proxy/impl/ProxyConnectionLogger.java
index e6eac83e..4d5f2892 100644
--- a/src/main/java/org/littleshoot/proxy/impl/ProxyConnectionLogger.java
+++ b/src/main/java/org/littleshoot/proxy/impl/ProxyConnectionLogger.java
@@ -32,7 +32,7 @@ public ProxyConnectionLogger(ProxyConnection connection) {
final Logger lg = LoggerFactory.getLogger(connection
.getClass());
if (lg instanceof LocationAwareLogger) {
- dispatch = new LocationAwareLogggerDispatch((LocationAwareLogger) lg);
+ dispatch = new LocationAwareLoggerDispatch((LocationAwareLogger) lg);
}
else {
dispatch = new LoggerDispatch();
@@ -163,11 +163,11 @@ public void doLog(int level, String message, Object[] params, Throwable t) {
/**
* Dispatcher for a LocationAwareLogger.
*/
- private class LocationAwareLogggerDispatch implements LogDispatch {
+ private class LocationAwareLoggerDispatch implements LogDispatch {
private LocationAwareLogger log;
- public LocationAwareLogggerDispatch(LocationAwareLogger log) {
+ public LocationAwareLoggerDispatch(LocationAwareLogger log) {
this.log = log;
}
diff --git a/src/test/java/org/littleshoot/proxy/BaseProxyTest.java b/src/test/java/org/littleshoot/proxy/BaseProxyTest.java
index 846545c1..a46b306c 100644
--- a/src/test/java/org/littleshoot/proxy/BaseProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/BaseProxyTest.java
@@ -4,8 +4,8 @@
import org.junit.Test;
/**
- * Base for tests that test the proxy. This base class encapsulates all of the
- * tests and test conditions. Sub-classes should provide different
+ * Base for tests that test the proxy. This base class encapsulates all the
+ * tests and test conditions. Subclasses should provide different
* {@link #setUp()} and {@link #tearDown()} methods for testing different
* configurations of the proxy (e.g. single versus chained, tunneling, etc.).
*/
@@ -46,7 +46,7 @@ public void testHeadRequestFollowedByGet() throws Exception {
@Test
public void testProxyWithBadAddress()
throws Exception {
- // This test used to try connecting to "test.localhost" and that worked for for local builds, but resulted in
+ // This test used to try connecting to "test.localhost" and that worked for local builds, but resulted in
// the wrong error (405 instead of 502) on the build server due to nginx. So, switched it to localhost:17,
// which should work as long as there's not a web server running on the QOTD port.
ResponseInfo response =
diff --git a/src/test/java/org/littleshoot/proxy/EndToEndStoppingTest.java b/src/test/java/org/littleshoot/proxy/EndToEndStoppingTest.java
index 49591f35..f8935011 100644
--- a/src/test/java/org/littleshoot/proxy/EndToEndStoppingTest.java
+++ b/src/test/java/org/littleshoot/proxy/EndToEndStoppingTest.java
@@ -32,7 +32,7 @@
import static org.mockserver.model.HttpResponse.response;
/**
- * End to end test making sure the proxy is able to service simple HTTP requests
+ * End-to-end test making sure the proxy is able to service simple HTTP requests
* and stop at the end. Made into a unit test from isopov and nasis's
* contributions at: https://github.com/adamfisk/LittleProxy/issues/36
*/
diff --git a/src/test/java/org/littleshoot/proxy/MitmProxyTest.java b/src/test/java/org/littleshoot/proxy/MitmProxyTest.java
index 68b4a000..84a77fc4 100644
--- a/src/test/java/org/littleshoot/proxy/MitmProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/MitmProxyTest.java
@@ -137,11 +137,11 @@ private void assertMethodSeenInRequestFilters(HttpMethod method) {
private void assertMethodSeenInResponseFilters(HttpMethod method) {
assertThat(
method
- + " should have been seen as the original requests's method in serverToProxyResponse filter",
+ + " should have been seen as the original request's method in serverToProxyResponse filter",
responsePreOriginalRequestMethodsSeen, hasItem(method));
assertThat(
method
- + " should have been seen as the original requests's method in proxyToClientResponse filter",
+ + " should have been seen as the original request's method in proxyToClientResponse filter",
responsePostOriginalRequestMethodsSeen, hasItem(method));
}
diff --git a/src/test/java/org/littleshoot/proxy/MitmWithChainedProxyTest.java b/src/test/java/org/littleshoot/proxy/MitmWithChainedProxyTest.java
index d1cca41f..25af3ba1 100644
--- a/src/test/java/org/littleshoot/proxy/MitmWithChainedProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/MitmWithChainedProxyTest.java
@@ -154,11 +154,11 @@ private void assertMethodSeenInRequestFilters(HttpMethod method) {
private void assertMethodSeenInResponseFilters(HttpMethod method) {
assertThat(
method
- + " should have been seen as the original requests's method in serverToProxyResponse filter",
+ + " should have been seen as the original request's method in serverToProxyResponse filter",
responsePreOriginalRequestMethodsSeen, hasItem(method));
assertThat(
method
- + " should have been seen as the original requests's method in proxyToClientResponse filter",
+ + " should have been seen as the original request's method in proxyToClientResponse filter",
responsePostOriginalRequestMethodsSeen, hasItem(method));
}
From 3c3435eb079891ba7ccb94d07d47581b3cb47a59 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Fri, 6 May 2022 20:05:50 +0300
Subject: [PATCH 083/973] use slf4j-reload4j instead of slf4j-log4j12
the artifact was relocated in central maven repository
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 6136afa2..bacadaf4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -284,7 +284,7 @@
org.slf4j
- slf4j-log4j12
+ slf4j-reload4j${slf4j.version}true
From fdb9d055fdd2a2eebe8a9f82ef4953a186a1bfe4 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Fri, 6 May 2022 20:08:11 +0300
Subject: [PATCH 084/973] make some inner classes static
---
src/main/java/org/littleshoot/proxy/impl/ProxyConnection.java | 2 +-
.../java/org/littleshoot/proxy/websockets/WebSocketClient.java | 2 +-
.../java/org/littleshoot/proxy/websockets/WebSocketServer.java | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/littleshoot/proxy/impl/ProxyConnection.java b/src/main/java/org/littleshoot/proxy/impl/ProxyConnection.java
index 081571a2..60fe423c 100644
--- a/src/main/java/org/littleshoot/proxy/impl/ProxyConnection.java
+++ b/src/main/java/org/littleshoot/proxy/impl/ProxyConnection.java
@@ -738,7 +738,7 @@ public void write(ChannelHandlerContext ctx,
* Utility handler for monitoring requests written on this connection.
*/
@Sharable
- protected abstract class RequestWrittenMonitor extends
+ protected static abstract class RequestWrittenMonitor extends
ChannelOutboundHandlerAdapter {
@Override
public void write(ChannelHandlerContext ctx,
diff --git a/src/test/java/org/littleshoot/proxy/websockets/WebSocketClient.java b/src/test/java/org/littleshoot/proxy/websockets/WebSocketClient.java
index 5f10fca9..9b114e82 100644
--- a/src/test/java/org/littleshoot/proxy/websockets/WebSocketClient.java
+++ b/src/test/java/org/littleshoot/proxy/websockets/WebSocketClient.java
@@ -150,7 +150,7 @@ public void close() {
}
}
- private class WebSocketClientChannelInitializer extends ChannelInitializer {
+ private static class WebSocketClientChannelInitializer extends ChannelInitializer {
private final WebSocketClientHandler handler;
private final URI uri;
private final Optional httpProxy;
diff --git a/src/test/java/org/littleshoot/proxy/websockets/WebSocketServer.java b/src/test/java/org/littleshoot/proxy/websockets/WebSocketServer.java
index 244534ad..a5f4b952 100644
--- a/src/test/java/org/littleshoot/proxy/websockets/WebSocketServer.java
+++ b/src/test/java/org/littleshoot/proxy/websockets/WebSocketServer.java
@@ -99,7 +99,7 @@ public void stop() throws InterruptedException {
}
}
- private class WebSocketServerInitializer extends ChannelInitializer {
+ private static class WebSocketServerInitializer extends ChannelInitializer {
private final Optional sslCtx;
public WebSocketServerInitializer(final Optional sslCtx) {
From dc3607c36a6bfef84caba0d4364d2f6aa5854b31 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Fri, 6 May 2022 20:13:54 +0300
Subject: [PATCH 085/973] use StandardCharsets.UTF_8 instead of
Charset.forName("UTF-8")
---
README.md | 34 +++++++++++--------
.../proxy/impl/ClientToProxyConnection.java | 5 ++-
.../org/littleshoot/proxy/MitmProxyTest.java | 14 ++++----
.../proxy/MitmWithChainedProxyTest.java | 14 ++++----
.../proxy/VariableSpeedClientServerTest.java | 4 +--
.../proxy/test/HttpClientUtil.java | 5 +--
.../proxy/test/SocketClientUtil.java | 7 ++--
.../proxy/websockets/WebSocketServer.java | 2 +-
8 files changed, 47 insertions(+), 38 deletions(-)
diff --git a/README.md b/README.md
index ea495588..dc4b514f 100644
--- a/README.md
+++ b/README.md
@@ -112,22 +112,26 @@ your proxy. You can return a `HttpFilters` implementation which answers
responses with HTML content or redirects in `clientToProxyRequest` like this:
```java
+import java.nio.charset.StandardCharsets;
+
+import static java.nio.charset.StandardCharsets.UTF_8;
+
public class AnswerRequestFilter extends HttpFiltersAdapter {
- private final String answer;
-
- public AnswerRequestFilter(HttpRequest originalRequest, String answer) {
- super(originalRequest, null);
- this.answer = answer;
- }
-
- @Override
- public HttpResponse clientToProxyRequest(HttpObject httpObject) {
- ByteBuf buffer = Unpooled.wrappedBuffer(answer.getBytes("UTF-8"));
- HttpResponse response = new DefaultFullHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK, buffer);
- HttpHeaders.setContentLength(response, buffer.readableBytes());
- HttpHeaders.setHeader(response, HttpHeaders.Names.CONTENT_TYPE, "text/html");
- return response;
- }
+ private final String answer;
+
+ public AnswerRequestFilter(HttpRequest originalRequest, String answer) {
+ super(originalRequest, null);
+ this.answer = answer;
+ }
+
+ @Override
+ public HttpResponse clientToProxyRequest(HttpObject httpObject) {
+ ByteBuf buffer = Unpooled.wrappedBuffer(answer.getBytes(UTF_8));
+ HttpResponse response = new DefaultFullHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK, buffer);
+ HttpHeaders.setContentLength(response, buffer.readableBytes());
+ HttpHeaders.setHeader(response, HttpHeaders.Names.CONTENT_TYPE, "text/html");
+ return response;
+ }
}
```
On answering a redirect, you should add a Connection: close header, to avoid
diff --git a/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java b/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
index 796b1db2..7c089021 100644
--- a/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
+++ b/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
@@ -38,11 +38,9 @@
import org.littleshoot.proxy.SslEngineSource;
import javax.net.ssl.SSLSession;
-
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.UnknownHostException;
-import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
@@ -55,6 +53,7 @@
import java.util.concurrent.atomic.AtomicInteger;
import java.util.regex.Pattern;
+import static java.nio.charset.StandardCharsets.UTF_8;
import static org.littleshoot.proxy.impl.ConnectionState.AWAITING_CHUNK;
import static org.littleshoot.proxy.impl.ConnectionState.AWAITING_INITIAL;
import static org.littleshoot.proxy.impl.ConnectionState.AWAITING_PROXY_AUTHENTICATION;
@@ -1023,7 +1022,7 @@ private boolean authenticationRequired(HttpRequest request) {
byte[] decodedValue = BaseEncoding.base64().decode(value);
- String decodedString = new String(decodedValue, Charset.forName("UTF-8"));
+ String decodedString = new String(decodedValue, UTF_8);
String userName = StringUtils.substringBefore(decodedString, ":");
String password = StringUtils.substringAfter(decodedString, ":");
diff --git a/src/test/java/org/littleshoot/proxy/MitmProxyTest.java b/src/test/java/org/littleshoot/proxy/MitmProxyTest.java
index 84a77fc4..4ccd47b8 100644
--- a/src/test/java/org/littleshoot/proxy/MitmProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/MitmProxyTest.java
@@ -1,12 +1,16 @@
package org.littleshoot.proxy;
-import io.netty.handler.codec.http.*;
+import io.netty.handler.codec.http.HttpContent;
+import io.netty.handler.codec.http.HttpMethod;
+import io.netty.handler.codec.http.HttpObject;
+import io.netty.handler.codec.http.HttpRequest;
+import io.netty.handler.codec.http.HttpResponse;
import org.littleshoot.proxy.extras.SelfSignedMitmManager;
-import java.nio.charset.Charset;
import java.util.HashSet;
import java.util.Set;
+import static java.nio.charset.StandardCharsets.UTF_8;
import static org.hamcrest.Matchers.hasItem;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
@@ -61,8 +65,7 @@ public HttpObject serverToProxyResponse(
.add(originalRequest.method());
} else if (httpObject instanceof HttpContent) {
responsePreBody.append(((HttpContent) httpObject)
- .content().toString(
- Charset.forName("UTF-8")));
+ .content().toString(UTF_8));
}
return httpObject;
}
@@ -75,8 +78,7 @@ public HttpObject proxyToClientResponse(
.add(originalRequest.method());
} else if (httpObject instanceof HttpContent) {
responsePostBody.append(((HttpContent) httpObject)
- .content().toString(
- Charset.forName("UTF-8")));
+ .content().toString(UTF_8));
}
return httpObject;
}
diff --git a/src/test/java/org/littleshoot/proxy/MitmWithChainedProxyTest.java b/src/test/java/org/littleshoot/proxy/MitmWithChainedProxyTest.java
index 25af3ba1..f405e59e 100644
--- a/src/test/java/org/littleshoot/proxy/MitmWithChainedProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/MitmWithChainedProxyTest.java
@@ -1,12 +1,16 @@
package org.littleshoot.proxy;
-import io.netty.handler.codec.http.*;
+import io.netty.handler.codec.http.HttpContent;
+import io.netty.handler.codec.http.HttpMethod;
+import io.netty.handler.codec.http.HttpObject;
+import io.netty.handler.codec.http.HttpRequest;
+import io.netty.handler.codec.http.HttpResponse;
import org.littleshoot.proxy.extras.SelfSignedMitmManager;
-import java.nio.charset.Charset;
import java.util.HashSet;
import java.util.Set;
+import static java.nio.charset.StandardCharsets.UTF_8;
import static org.hamcrest.Matchers.hasItem;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
@@ -70,8 +74,7 @@ public HttpObject serverToProxyResponse(
.add(originalRequest.method());
} else if (httpObject instanceof HttpContent) {
responsePreBody.append(((HttpContent) httpObject)
- .content().toString(
- Charset.forName("UTF-8")));
+ .content().toString(UTF_8));
}
return httpObject;
}
@@ -84,8 +87,7 @@ public HttpObject proxyToClientResponse(
.add(originalRequest.method());
} else if (httpObject instanceof HttpContent) {
responsePostBody.append(((HttpContent) httpObject)
- .content().toString(
- Charset.forName("UTF-8")));
+ .content().toString(UTF_8));
}
return httpObject;
}
diff --git a/src/test/java/org/littleshoot/proxy/VariableSpeedClientServerTest.java b/src/test/java/org/littleshoot/proxy/VariableSpeedClientServerTest.java
index 320031ee..ebdebef5 100644
--- a/src/test/java/org/littleshoot/proxy/VariableSpeedClientServerTest.java
+++ b/src/test/java/org/littleshoot/proxy/VariableSpeedClientServerTest.java
@@ -16,9 +16,9 @@
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
-import java.nio.charset.Charset;
import java.util.Arrays;
+import static java.nio.charset.StandardCharsets.UTF_8;
import static org.junit.Assert.assertEquals;
/**
@@ -139,7 +139,7 @@ private void startServerOnThread(int port, boolean slowReader)
// or
// so.
- os.write(responseHeaders.getBytes(Charset.forName("UTF-8")));
+ os.write(responseHeaders.getBytes(UTF_8));
int bufferSize = 100000;
final byte[] bytes = new byte[bufferSize];
diff --git a/src/test/java/org/littleshoot/proxy/test/HttpClientUtil.java b/src/test/java/org/littleshoot/proxy/test/HttpClientUtil.java
index 81187c29..0626b830 100644
--- a/src/test/java/org/littleshoot/proxy/test/HttpClientUtil.java
+++ b/src/test/java/org/littleshoot/proxy/test/HttpClientUtil.java
@@ -12,7 +12,8 @@
import org.littleshoot.proxy.HttpProxyServer;
import java.io.IOException;
-import java.nio.charset.Charset;
+
+import static java.nio.charset.StandardCharsets.UTF_8;
/**
* Utility methods for creating HTTP clients and sending requests to servers via a LittleProxy instance.
@@ -53,7 +54,7 @@ public static org.apache.http.HttpResponse performHttpPost(String url, int postS
}
HttpPost post = new HttpPost(url);
- post.setEntity(new StringEntity(sb.toString(), Charset.forName("UTF-8")));
+ post.setEntity(new StringEntity(sb.toString(), UTF_8));
return performHttpRequest(httpClient, post);
}
diff --git a/src/test/java/org/littleshoot/proxy/test/SocketClientUtil.java b/src/test/java/org/littleshoot/proxy/test/SocketClientUtil.java
index ad4653d3..1ecbb566 100644
--- a/src/test/java/org/littleshoot/proxy/test/SocketClientUtil.java
+++ b/src/test/java/org/littleshoot/proxy/test/SocketClientUtil.java
@@ -10,7 +10,8 @@
import java.net.Socket;
import java.net.SocketException;
import java.net.SocketTimeoutException;
-import java.nio.charset.Charset;
+
+import static java.nio.charset.StandardCharsets.UTF_8;
/**
* Utilities for interacting with the proxy server using sockets.
@@ -24,7 +25,7 @@ public class SocketClientUtil {
*/
public static void writeStringToSocket(String string, Socket socket) throws IOException {
OutputStream out = socket.getOutputStream();
- out.write(string.getBytes(Charset.forName("UTF-8")));
+ out.write(string.getBytes(UTF_8));
out.flush();
}
@@ -44,7 +45,7 @@ public static String readStringFromSocket(Socket socket) throws IOException {
throw new EOFException("Unable to read from socket. The socket is closed.");
}
- return new String(bytes, 0, bytesRead, Charset.forName("UTF-8"));
+ return new String(bytes, 0, bytesRead, UTF_8);
}
/**
diff --git a/src/test/java/org/littleshoot/proxy/websockets/WebSocketServer.java b/src/test/java/org/littleshoot/proxy/websockets/WebSocketServer.java
index a5f4b952..86416cd1 100644
--- a/src/test/java/org/littleshoot/proxy/websockets/WebSocketServer.java
+++ b/src/test/java/org/littleshoot/proxy/websockets/WebSocketServer.java
@@ -107,7 +107,7 @@ public WebSocketServerInitializer(final Optional sslCtx) {
}
@Override
- public void initChannel(final SocketChannel channel) throws Exception {
+ public void initChannel(final SocketChannel channel) {
final ChannelPipeline pipeline = channel.pipeline();
sslCtx.map(ctx -> ctx.newHandler(channel.alloc()))
.ifPresent(handler -> pipeline.addLast("ssl", handler));
From 62de37e53565068cf463911c23ab769826be4f81 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Fri, 6 May 2022 20:19:14 +0300
Subject: [PATCH 086/973] use try-with-resources
---
.../proxy/EndToEndStoppingTest.java | 6 +-
.../proxy/HttpStreamingFilterTest.java | 23 ++---
.../littleshoot/proxy/ProxyHeadersTest.java | 13 +--
.../org/littleshoot/proxy/TimeoutTest.java | 39 +++++----
.../proxy/VariableSpeedClientServerTest.java | 86 ++++++++++---------
5 files changed, 85 insertions(+), 82 deletions(-)
diff --git a/src/test/java/org/littleshoot/proxy/EndToEndStoppingTest.java b/src/test/java/org/littleshoot/proxy/EndToEndStoppingTest.java
index f8935011..1b8acf85 100644
--- a/src/test/java/org/littleshoot/proxy/EndToEndStoppingTest.java
+++ b/src/test/java/org/littleshoot/proxy/EndToEndStoppingTest.java
@@ -5,8 +5,8 @@
import org.apache.commons.io.IOUtils;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
-import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
+import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.util.EntityUtils;
import org.junit.After;
import org.junit.Before;
@@ -139,9 +139,7 @@ public io.netty.handler.codec.http.HttpResponse proxyToServerRequest(
}
}).start();
- try {
- final HttpClient client = TestUtils.createProxiedHttpClient(proxy.getListenAddress().getPort());
-
+ try (CloseableHttpClient client = TestUtils.createProxiedHttpClient(proxy.getListenAddress().getPort())) {
// final HttpPost get = new HttpPost(site);
final HttpGet get = new HttpGet(site);
diff --git a/src/test/java/org/littleshoot/proxy/HttpStreamingFilterTest.java b/src/test/java/org/littleshoot/proxy/HttpStreamingFilterTest.java
index c38c3fb1..67fa4897 100644
--- a/src/test/java/org/littleshoot/proxy/HttpStreamingFilterTest.java
+++ b/src/test/java/org/littleshoot/proxy/HttpStreamingFilterTest.java
@@ -89,19 +89,20 @@ public void testFiltering() throws Exception {
entity.setChunked(true);
request.setEntity(entity);
- CloseableHttpClient httpClient = TestUtils.createProxiedHttpClient(
- proxyServer.getListenAddress().getPort());
+ try (CloseableHttpClient httpClient = TestUtils.createProxiedHttpClient(
+ proxyServer.getListenAddress().getPort())) {
- final org.apache.http.HttpResponse response = httpClient.execute(
- new HttpHost("127.0.0.1",
- webServerPort), request);
+ final org.apache.http.HttpResponse response = httpClient.execute(
+ new HttpHost("127.0.0.1",
+ webServerPort), request);
- assertEquals("Received 20000 bytes\n",
- EntityUtils.toString(response.getEntity()));
+ assertEquals("Received 20000 bytes\n",
+ EntityUtils.toString(response.getEntity()));
- assertEquals("Filter should have seen only 1 HttpRequest", 1,
- numberOfInitialRequestsFiltered.get());
- assertThat("Filter should have seen 1 or more chunks",
- numberOfSubsequentChunksFiltered.get(), greaterThanOrEqualTo(1));
+ assertEquals("Filter should have seen only 1 HttpRequest", 1,
+ numberOfInitialRequestsFiltered.get());
+ assertThat("Filter should have seen 1 or more chunks",
+ numberOfSubsequentChunksFiltered.get(), greaterThanOrEqualTo(1));
+ }
}
}
diff --git a/src/test/java/org/littleshoot/proxy/ProxyHeadersTest.java b/src/test/java/org/littleshoot/proxy/ProxyHeadersTest.java
index c25525ff..93a1ea69 100644
--- a/src/test/java/org/littleshoot/proxy/ProxyHeadersTest.java
+++ b/src/test/java/org/littleshoot/proxy/ProxyHeadersTest.java
@@ -2,8 +2,8 @@
import org.apache.http.Header;
import org.apache.http.HttpResponse;
-import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
+import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.util.EntityUtils;
import org.junit.After;
import org.junit.Before;
@@ -66,11 +66,12 @@ public void testProxyRemovesConnectionHeadersFromServer() throws Exception {
.withPort(0)
.start();
- HttpClient httpClient = TestUtils.createProxiedHttpClient(proxyServer.getListenAddress().getPort());
- HttpResponse response = httpClient.execute(new HttpGet("http://localhost:" + mockServerPort + "/connectionheaders"));
- EntityUtils.consume(response.getEntity());
+ try (CloseableHttpClient httpClient = TestUtils.createProxiedHttpClient(proxyServer.getListenAddress().getPort())) {
+ HttpResponse response = httpClient.execute(new HttpGet("http://localhost:" + mockServerPort + "/connectionheaders"));
+ EntityUtils.consume(response.getEntity());
- Header[] dummyHeaders = response.getHeaders("Dummy-Header");
- assertThat("Expected proxy to remove the Dummy-Header specified in the Connection header", dummyHeaders, emptyArray());
+ Header[] dummyHeaders = response.getHeaders("Dummy-Header");
+ assertThat("Expected proxy to remove the Dummy-Header specified in the Connection header", dummyHeaders, emptyArray());
+ }
}
}
diff --git a/src/test/java/org/littleshoot/proxy/TimeoutTest.java b/src/test/java/org/littleshoot/proxy/TimeoutTest.java
index 8e3e69b0..98501154 100644
--- a/src/test/java/org/littleshoot/proxy/TimeoutTest.java
+++ b/src/test/java/org/littleshoot/proxy/TimeoutTest.java
@@ -68,18 +68,18 @@ public void testIdleConnectionTimeout() throws Exception {
.withDelay(new Delay(TimeUnit.SECONDS, 5))
);
- CloseableHttpClient httpClient = TestUtils.createProxiedHttpClient(proxyServer.getListenAddress().getPort());
+ try (CloseableHttpClient httpClient = TestUtils.createProxiedHttpClient(proxyServer.getListenAddress().getPort())) {
+ long start = System.nanoTime();
+ HttpGet get = new HttpGet("http://127.0.0.1:" + mockServerPort + "/idleconnection");
+ long stop = System.nanoTime();
- long start = System.nanoTime();
- HttpGet get = new HttpGet("http://127.0.0.1:" + mockServerPort + "/idleconnection");
- long stop = System.nanoTime();
+ HttpResponse response = httpClient.execute(get);
+ EntityUtils.consumeQuietly(response.getEntity());
- HttpResponse response = httpClient.execute(get);
- EntityUtils.consumeQuietly(response.getEntity());
-
- assertEquals("Expected to receive an HTTP 504 (Gateway Timeout) response after proxy did not receive a response within 1 second", 504, response.getStatusLine().getStatusCode());
- assertThat("Expected idle connection timeout to happen after approximately 1 second",
- TimeUnit.MILLISECONDS.convert(stop - start, TimeUnit.NANOSECONDS), lessThan(2000L));
+ assertEquals("Expected to receive an HTTP 504 (Gateway Timeout) response after proxy did not receive a response within 1 second", 504, response.getStatusLine().getStatusCode());
+ assertThat("Expected idle connection timeout to happen after approximately 1 second",
+ TimeUnit.MILLISECONDS.convert(stop - start, TimeUnit.NANOSECONDS), lessThan(2000L));
+ }
}
@Test
@@ -89,19 +89,20 @@ public void testConnectionTimeout() throws Exception {
.withConnectTimeout(1000)
.start();
- CloseableHttpClient httpClient = TestUtils.createProxiedHttpClient(proxyServer.getListenAddress().getPort());
+ try (CloseableHttpClient httpClient = TestUtils.createProxiedHttpClient(proxyServer.getListenAddress().getPort())) {
- HttpGet get = new HttpGet(UNUSED_URI_FOR_BAD_GATEWAY);
+ HttpGet get = new HttpGet(UNUSED_URI_FOR_BAD_GATEWAY);
- long start = System.nanoTime();
- HttpResponse response = httpClient.execute(get);
- long stop = System.nanoTime();
+ long start = System.nanoTime();
+ HttpResponse response = httpClient.execute(get);
+ long stop = System.nanoTime();
- EntityUtils.consumeQuietly(response.getEntity());
+ EntityUtils.consumeQuietly(response.getEntity());
- assertEquals("Expected to receive an HTTP 502 (Bad Gateway) response after proxy could not connect within 1 second", 502, response.getStatusLine().getStatusCode());
- assertThat("Expected connection timeout to happen after approximately 1 second",
- TimeUnit.MILLISECONDS.convert(stop - start, TimeUnit.NANOSECONDS), lessThan(2000L));
+ assertEquals("Expected to receive an HTTP 502 (Bad Gateway) response after proxy could not connect within 1 second", 502, response.getStatusLine().getStatusCode());
+ assertThat("Expected connection timeout to happen after approximately 1 second",
+ TimeUnit.MILLISECONDS.convert(stop - start, TimeUnit.NANOSECONDS), lessThan(2000L));
+ }
}
/**
diff --git a/src/test/java/org/littleshoot/proxy/VariableSpeedClientServerTest.java b/src/test/java/org/littleshoot/proxy/VariableSpeedClientServerTest.java
index ebdebef5..e03ed76f 100644
--- a/src/test/java/org/littleshoot/proxy/VariableSpeedClientServerTest.java
+++ b/src/test/java/org/littleshoot/proxy/VariableSpeedClientServerTest.java
@@ -51,55 +51,57 @@ private void doTest(int port, int proxyPort, boolean slowServer)
DefaultHttpProxyServer.bootstrap().withPort(proxyPort).start();
Thread.yield();
Thread.sleep(400);
- final CloseableHttpClient client = TestUtils.createProxiedHttpClient(proxyPort);
-
- System.out
- .println("------------------ Memory Usage At Beginning ------------------");
- TestUtils.getOpenFileDescriptorsAndPrintMemoryUsage();
-
- final String endpoint = "http://127.0.0.1:" + port + "/";
- final HttpPost post = new HttpPost(endpoint);
- post.setConfig(TestUtils.REQUEST_TIMEOUT_CONFIG);
- post.setEntity(new InputStreamEntity(new InputStream() {
- private int remaining = CONTENT_LENGTH;
-
- @Override
- public int read() {
- if (remaining > 0) {
- remaining -= 1;
- return 77;
- } else {
- return 0;
+ try (CloseableHttpClient client = TestUtils.createProxiedHttpClient(proxyPort)) {
+
+ System.out
+ .println("------------------ Memory Usage At Beginning ------------------");
+ TestUtils.getOpenFileDescriptorsAndPrintMemoryUsage();
+
+ final String endpoint = "http://127.0.0.1:" + port + "/";
+ final HttpPost post = new HttpPost(endpoint);
+ post.setConfig(TestUtils.REQUEST_TIMEOUT_CONFIG);
+ post.setEntity(new InputStreamEntity(new InputStream() {
+ private int remaining = CONTENT_LENGTH;
+
+ @Override
+ public int read() {
+ if (remaining > 0) {
+ remaining -= 1;
+ return 77;
+ }
+ else {
+ return 0;
+ }
}
- }
- @Override
- public int available() {
- return remaining;
- }
- }, CONTENT_LENGTH));
- final HttpResponse response = client.execute(post);
+ @Override
+ public int available() {
+ return remaining;
+ }
+ }, CONTENT_LENGTH));
+ final HttpResponse response = client.execute(post);
- final HttpEntity entity = response.getEntity();
- final long cl = entity.getContentLength();
- assertEquals(CONTENT_LENGTH, cl);
+ final HttpEntity entity = response.getEntity();
+ final long cl = entity.getContentLength();
+ assertEquals(CONTENT_LENGTH, cl);
- int bytesRead = 0;
- try (InputStream content = slowServer ? new ThrottledInputStream(entity.getContent(), 10 * 1000) : entity.getContent()) {
- final byte[] input = new byte[100000];
- int read = content.read(input);
+ int bytesRead = 0;
+ try (InputStream content = slowServer ? new ThrottledInputStream(entity.getContent(), 10 * 1000) : entity.getContent()) {
+ final byte[] input = new byte[100000];
+ int read = content.read(input);
- while (read != -1) {
- bytesRead += read;
- read = content.read(input);
+ while (read != -1) {
+ bytesRead += read;
+ read = content.read(input);
+ }
}
+ assertEquals(CONTENT_LENGTH, bytesRead);
+ // final String body = IOUtils.toString(entity.getContent());
+ EntityUtils.consume(entity);
+ System.out
+ .println("------------------ Memory Usage At Beginning ------------------");
+ TestUtils.getOpenFileDescriptorsAndPrintMemoryUsage();
}
- assertEquals(CONTENT_LENGTH, bytesRead);
- // final String body = IOUtils.toString(entity.getContent());
- EntityUtils.consume(entity);
- System.out
- .println("------------------ Memory Usage At Beginning ------------------");
- TestUtils.getOpenFileDescriptorsAndPrintMemoryUsage();
}
private void startServer(final int port, final boolean slowReader) {
From d6aa080d21c1635a12e0be10c2cb0456d7306035 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Fri, 6 May 2022 20:24:31 +0300
Subject: [PATCH 087/973] make fields final
---
.../proxy/extras/ProxyProtocolMessage.java | 14 ++++++------
.../proxy/impl/CategorizedThreadFactory.java | 2 +-
.../proxy/impl/ClientToProxyConnection.java | 8 +++----
.../proxy/impl/ConnectionFlow.java | 2 +-
.../proxy/impl/DefaultHttpProxyServer.java | 4 ++--
.../proxy/impl/ProxyConnectionLogger.java | 2 +-
.../proxy/impl/ProxyToServerConnection.java | 22 +++++++++----------
.../littleshoot/proxy/impl/ProxyUtils.java | 2 +-
.../proxy/ChainedProxyWithFallbackTest.java | 2 +-
.../org/littleshoot/proxy/MitmProxyTest.java | 12 +++++-----
.../proxy/MitmWithChainedProxyTest.java | 12 +++++-----
.../org/littleshoot/proxy/ResponseInfo.java | 4 ++--
.../haproxy/ProxyProtocolClientHandler.java | 4 ++--
.../proxy/haproxy/ProxyProtocolHeader.java | 8 +++----
14 files changed, 49 insertions(+), 49 deletions(-)
diff --git a/src/main/java/org/littleshoot/proxy/extras/ProxyProtocolMessage.java b/src/main/java/org/littleshoot/proxy/extras/ProxyProtocolMessage.java
index cee89ad0..8ce58390 100644
--- a/src/main/java/org/littleshoot/proxy/extras/ProxyProtocolMessage.java
+++ b/src/main/java/org/littleshoot/proxy/extras/ProxyProtocolMessage.java
@@ -7,13 +7,13 @@
public class ProxyProtocolMessage {
- private HAProxyProtocolVersion protocolVersion;
- private HAProxyCommand command;
- private HAProxyProxiedProtocol proxiedProtocol;
- private String sourceAddress;
- private String destinationAddress;
- private int sourcePort;
- private int destinationPort;
+ private final HAProxyProtocolVersion protocolVersion;
+ private final HAProxyCommand command;
+ private final HAProxyProxiedProtocol proxiedProtocol;
+ private final String sourceAddress;
+ private final String destinationAddress;
+ private final int sourcePort;
+ private final int destinationPort;
public ProxyProtocolMessage(HAProxyProtocolVersion protocolVersion, HAProxyCommand command, HAProxyProxiedProtocol proxiedProtocol, String sourceAddress, String destinationAddress
, int sourcePort, int destinationPort) {
diff --git a/src/main/java/org/littleshoot/proxy/impl/CategorizedThreadFactory.java b/src/main/java/org/littleshoot/proxy/impl/CategorizedThreadFactory.java
index 18bc74c4..7e05dc79 100644
--- a/src/main/java/org/littleshoot/proxy/impl/CategorizedThreadFactory.java
+++ b/src/main/java/org/littleshoot/proxy/impl/CategorizedThreadFactory.java
@@ -16,7 +16,7 @@ public class CategorizedThreadFactory implements ThreadFactory {
private final String category;
private final int uniqueServerGroupId;
- private AtomicInteger threadCount = new AtomicInteger(0);
+ private final AtomicInteger threadCount = new AtomicInteger(0);
/**
* Exception handler for proxy threads. Logs the name of the thread and the exception that was caught.
diff --git a/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java b/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
index 7c089021..eb097043 100644
--- a/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
+++ b/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
@@ -147,7 +147,7 @@ public class ClientToProxyConnection extends ProxyConnection {
*/
private volatile boolean mitming = false;
- private AtomicBoolean authenticated = new AtomicBoolean();
+ private final AtomicBoolean authenticated = new AtomicBoolean();
private final GlobalTrafficShapingHandler globalTrafficShapingHandler;
@@ -1415,7 +1415,7 @@ protected void bytesRead(int numberOfBytes) {
}
};
- private RequestReadMonitor requestReadMonitor = new RequestReadMonitor() {
+ private final RequestReadMonitor requestReadMonitor = new RequestReadMonitor() {
@Override
protected void requestRead(HttpRequest httpRequest) {
FlowContext flowContext = flowContext();
@@ -1426,7 +1426,7 @@ protected void requestRead(HttpRequest httpRequest) {
}
};
- private BytesWrittenMonitor bytesWrittenMonitor = new BytesWrittenMonitor() {
+ private final BytesWrittenMonitor bytesWrittenMonitor = new BytesWrittenMonitor() {
@Override
protected void bytesWritten(int numberOfBytes) {
FlowContext flowContext = flowContext();
@@ -1437,7 +1437,7 @@ protected void bytesWritten(int numberOfBytes) {
}
};
- private ResponseWrittenMonitor responseWrittenMonitor = new ResponseWrittenMonitor() {
+ private final ResponseWrittenMonitor responseWrittenMonitor = new ResponseWrittenMonitor() {
@Override
protected void responseWritten(HttpResponse httpResponse) {
FlowContext flowContext = flowContext();
diff --git a/src/main/java/org/littleshoot/proxy/impl/ConnectionFlow.java b/src/main/java/org/littleshoot/proxy/impl/ConnectionFlow.java
index b13295d5..415dbe68 100644
--- a/src/main/java/org/littleshoot/proxy/impl/ConnectionFlow.java
+++ b/src/main/java/org/littleshoot/proxy/impl/ConnectionFlow.java
@@ -18,7 +18,7 @@
* processing, and so on.
*/
class ConnectionFlow {
- private Deque steps = new ConcurrentLinkedDeque();
+ private final Deque steps = new ConcurrentLinkedDeque();
private final ClientToProxyConnection clientConnection;
private final ProxyToServerConnection serverConnection;
diff --git a/src/main/java/org/littleshoot/proxy/impl/DefaultHttpProxyServer.java b/src/main/java/org/littleshoot/proxy/impl/DefaultHttpProxyServer.java
index 037c6926..4c52a626 100644
--- a/src/main/java/org/littleshoot/proxy/impl/DefaultHttpProxyServer.java
+++ b/src/main/java/org/littleshoot/proxy/impl/DefaultHttpProxyServer.java
@@ -79,7 +79,7 @@ public class DefaultHttpProxyServer implements HttpProxyServer {
* The actual address to which the server is bound. May be different from the requestedAddress in some circumstances,
* for example when the requested port is 0.
*/
- private volatile InetSocketAddress localAddress;
+ private final InetSocketAddress localAddress;
private volatile InetSocketAddress boundAddress;
private final SslEngineSource sslEngineSource;
private final boolean authenticateSslClients;
@@ -587,7 +587,7 @@ private static class DefaultHttpProxyServerBootstrap implements HttpProxyServerB
private HttpFiltersSource filtersSource = new HttpFiltersSourceAdapter();
private boolean transparent = false;
private int idleConnectionTimeout = 70;
- private Collection activityTrackers = new ConcurrentLinkedQueue<>();
+ private final Collection activityTrackers = new ConcurrentLinkedQueue<>();
private int connectTimeout = 40000;
private HostResolver serverResolver = new DefaultHostResolver();
private long readThrottleBytesPerSecond;
diff --git a/src/main/java/org/littleshoot/proxy/impl/ProxyConnectionLogger.java b/src/main/java/org/littleshoot/proxy/impl/ProxyConnectionLogger.java
index 4d5f2892..fb00e89a 100644
--- a/src/main/java/org/littleshoot/proxy/impl/ProxyConnectionLogger.java
+++ b/src/main/java/org/littleshoot/proxy/impl/ProxyConnectionLogger.java
@@ -165,7 +165,7 @@ public void doLog(int level, String message, Object[] params, Throwable t) {
*/
private class LocationAwareLoggerDispatch implements LogDispatch {
- private LocationAwareLogger log;
+ private final LocationAwareLogger log;
public LocationAwareLoggerDispatch(LocationAwareLogger log) {
this.log = log;
diff --git a/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java b/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java
index 7fa21a4c..28286a4c 100644
--- a/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java
+++ b/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java
@@ -175,7 +175,7 @@ public class ProxyToServerConnection extends ProxyConnection {
/**
* Limits bandwidth when throttling is enabled.
*/
- private volatile GlobalTrafficShapingHandler trafficHandler;
+ private final GlobalTrafficShapingHandler trafficHandler;
/**
* Minimum size of the adaptive recv buffer when throttling is enabled.
@@ -655,7 +655,7 @@ private void removeHandlerIfPresent(String name) {
/**
* Opens the socket connection.
*/
- private ConnectionFlowStep ConnectChannel = new ConnectionFlowStep(this,
+ private final ConnectionFlowStep ConnectChannel = new ConnectionFlowStep(this,
CONNECTING) {
@Override
boolean shouldExecuteOnEventLoop() {
@@ -701,7 +701,7 @@ protected void initChannel(Channel ch) {
/**
* Writes the HTTP CONNECT to the server and waits for a 200 response.
*/
- private ConnectionFlowStep HTTPCONNECTWithChainedProxy = new ConnectionFlowStep(
+ private final ConnectionFlowStep HTTPCONNECTWithChainedProxy = new ConnectionFlowStep(
this, AWAITING_CONNECT_OK) {
protected Future> execute() {
LOG.debug("Handling CONNECT request through Chained Proxy");
@@ -757,7 +757,7 @@ void read(ConnectionFlow flow, Object msg) {
/**
* Establishes a SOCKS4 connection.
*/
- private ConnectionFlowStep SOCKS4CONNECTWithChainedProxy = new ConnectionFlowStep(
+ private final ConnectionFlowStep SOCKS4CONNECTWithChainedProxy = new ConnectionFlowStep(
this, AWAITING_CONNECT_OK) {
@Override
@@ -799,7 +799,7 @@ void onSuccess(ConnectionFlow flow) {
/**
* Initiates a SOCKS5 connection.
*/
- private ConnectionFlowStep SOCKS5InitialRequest = new ConnectionFlowStep(
+ private final ConnectionFlowStep SOCKS5InitialRequest = new ConnectionFlowStep(
this, AWAITING_CONNECT_OK) {
@Override
@@ -854,7 +854,7 @@ void onSuccess(ConnectionFlow flow) {
/**
* Sends SOCKS5 password credentials after {@link #SOCKS5InitialRequest} has completed.
*/
- private ConnectionFlowStep SOCKS5SendPasswordCredentials = new ConnectionFlowStep(
+ private final ConnectionFlowStep SOCKS5SendPasswordCredentials = new ConnectionFlowStep(
this, AWAITING_CONNECT_OK) {
@Override
@@ -888,7 +888,7 @@ void onSuccess(ConnectionFlow flow) {
* Establishes a SOCKS5 connection after {@link #SOCKS5InitialRequest} and
* (optionally) {@link #SOCKS5SendPasswordCredentials} have completed.
*/
- private ConnectionFlowStep SOCKS5CONNECTRequestWithChainedProxy = new ConnectionFlowStep(
+ private final ConnectionFlowStep SOCKS5CONNECTRequestWithChainedProxy = new ConnectionFlowStep(
this, AWAITING_CONNECT_OK) {
@Override
@@ -930,7 +930,7 @@ void onSuccess(ConnectionFlow flow) {
* respond to the CONNECT request.
*
*/
- private ConnectionFlowStep MitmEncryptClientChannel = new ConnectionFlowStep(
+ private final ConnectionFlowStep MitmEncryptClientChannel = new ConnectionFlowStep(
this, HANDSHAKING) {
@Override
boolean shouldExecuteOnEventLoop() {
@@ -1233,7 +1233,7 @@ protected void bytesRead(int numberOfBytes) {
}
};
- private ResponseReadMonitor responseReadMonitor = new ResponseReadMonitor() {
+ private final ResponseReadMonitor responseReadMonitor = new ResponseReadMonitor() {
@Override
protected void responseRead(HttpResponse httpResponse) {
FullFlowContext flowContext = new FullFlowContext(clientConnection,
@@ -1245,7 +1245,7 @@ protected void responseRead(HttpResponse httpResponse) {
}
};
- private BytesWrittenMonitor bytesWrittenMonitor = new BytesWrittenMonitor() {
+ private final BytesWrittenMonitor bytesWrittenMonitor = new BytesWrittenMonitor() {
@Override
protected void bytesWritten(int numberOfBytes) {
FullFlowContext flowContext = new FullFlowContext(clientConnection,
@@ -1257,7 +1257,7 @@ protected void bytesWritten(int numberOfBytes) {
}
};
- private RequestWrittenMonitor requestWrittenMonitor = new RequestWrittenMonitor() {
+ private final RequestWrittenMonitor requestWrittenMonitor = new RequestWrittenMonitor() {
@Override
protected void requestWriting(HttpRequest httpRequest) {
FullFlowContext flowContext = new FullFlowContext(clientConnection,
diff --git a/src/main/java/org/littleshoot/proxy/impl/ProxyUtils.java b/src/main/java/org/littleshoot/proxy/impl/ProxyUtils.java
index 6cc56b05..68c3a520 100644
--- a/src/main/java/org/littleshoot/proxy/impl/ProxyUtils.java
+++ b/src/main/java/org/littleshoot/proxy/impl/ProxyUtils.java
@@ -60,7 +60,7 @@ public class ProxyUtils {
// Schemes are case-insensitive:
// http://tools.ietf.org/html/rfc3986#section-3.1
- private static Pattern HTTP_PREFIX = Pattern.compile("^(http|ws)s?://.*",
+ private static final Pattern HTTP_PREFIX = Pattern.compile("^(http|ws)s?://.*",
Pattern.CASE_INSENSITIVE);
/**
diff --git a/src/test/java/org/littleshoot/proxy/ChainedProxyWithFallbackTest.java b/src/test/java/org/littleshoot/proxy/ChainedProxyWithFallbackTest.java
index 0edb6db1..dab9c497 100644
--- a/src/test/java/org/littleshoot/proxy/ChainedProxyWithFallbackTest.java
+++ b/src/test/java/org/littleshoot/proxy/ChainedProxyWithFallbackTest.java
@@ -13,7 +13,7 @@
* connection.
*/
public class ChainedProxyWithFallbackTest extends BaseProxyTest {
- private AtomicBoolean unableToConnect = new AtomicBoolean(false);
+ private final AtomicBoolean unableToConnect = new AtomicBoolean(false);
@Override
protected void setUp() {
diff --git a/src/test/java/org/littleshoot/proxy/MitmProxyTest.java b/src/test/java/org/littleshoot/proxy/MitmProxyTest.java
index 4ccd47b8..be08c8c7 100644
--- a/src/test/java/org/littleshoot/proxy/MitmProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/MitmProxyTest.java
@@ -19,12 +19,12 @@
* Tests just a single basic proxy running as a man in the middle.
*/
public class MitmProxyTest extends BaseProxyTest {
- private Set requestPreMethodsSeen = new HashSet<>();
- private Set requestPostMethodsSeen = new HashSet<>();
- private StringBuilder responsePreBody = new StringBuilder();
- private StringBuilder responsePostBody = new StringBuilder();
- private Set responsePreOriginalRequestMethodsSeen = new HashSet<>();
- private Set responsePostOriginalRequestMethodsSeen = new HashSet<>();
+ private final Set requestPreMethodsSeen = new HashSet<>();
+ private final Set requestPostMethodsSeen = new HashSet<>();
+ private final StringBuilder responsePreBody = new StringBuilder();
+ private final StringBuilder responsePostBody = new StringBuilder();
+ private final Set responsePreOriginalRequestMethodsSeen = new HashSet<>();
+ private final Set responsePostOriginalRequestMethodsSeen = new HashSet<>();
@Override
protected void setUp() {
diff --git a/src/test/java/org/littleshoot/proxy/MitmWithChainedProxyTest.java b/src/test/java/org/littleshoot/proxy/MitmWithChainedProxyTest.java
index f405e59e..fc4ef457 100644
--- a/src/test/java/org/littleshoot/proxy/MitmWithChainedProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/MitmWithChainedProxyTest.java
@@ -20,12 +20,12 @@
* another proxy.
*/
public class MitmWithChainedProxyTest extends BaseChainedProxyTest {
- private Set requestPreMethodsSeen = new HashSet<>();
- private Set requestPostMethodsSeen = new HashSet<>();
- private StringBuilder responsePreBody = new StringBuilder();
- private StringBuilder responsePostBody = new StringBuilder();
- private Set responsePreOriginalRequestMethodsSeen = new HashSet<>();
- private Set responsePostOriginalRequestMethodsSeen = new HashSet<>();
+ private final Set requestPreMethodsSeen = new HashSet<>();
+ private final Set requestPostMethodsSeen = new HashSet<>();
+ private final StringBuilder responsePreBody = new StringBuilder();
+ private final StringBuilder responsePostBody = new StringBuilder();
+ private final Set responsePreOriginalRequestMethodsSeen = new HashSet<>();
+ private final Set responsePostOriginalRequestMethodsSeen = new HashSet<>();
@Override
protected void setUp() {
diff --git a/src/test/java/org/littleshoot/proxy/ResponseInfo.java b/src/test/java/org/littleshoot/proxy/ResponseInfo.java
index 8ad0df24..43d91728 100644
--- a/src/test/java/org/littleshoot/proxy/ResponseInfo.java
+++ b/src/test/java/org/littleshoot/proxy/ResponseInfo.java
@@ -1,8 +1,8 @@
package org.littleshoot.proxy;
public class ResponseInfo {
- private int statusCode;
- private String body;
+ private final int statusCode;
+ private final String body;
public ResponseInfo(int statusCode, String body) {
super();
diff --git a/src/test/java/org/littleshoot/proxy/haproxy/ProxyProtocolClientHandler.java b/src/test/java/org/littleshoot/proxy/haproxy/ProxyProtocolClientHandler.java
index 288439bf..3aa64850 100644
--- a/src/test/java/org/littleshoot/proxy/haproxy/ProxyProtocolClientHandler.java
+++ b/src/test/java/org/littleshoot/proxy/haproxy/ProxyProtocolClientHandler.java
@@ -11,8 +11,8 @@
public class ProxyProtocolClientHandler extends ChannelInboundHandlerAdapter {
private static final String HOST = "http://localhost";
- private int serverPort;
- private ProxyProtocolHeader proxyProtocolHeader;
+ private final int serverPort;
+ private final ProxyProtocolHeader proxyProtocolHeader;
ProxyProtocolClientHandler(int serverPort, ProxyProtocolHeader proxyProtocolHeader) {
this.serverPort = serverPort;
diff --git a/src/test/java/org/littleshoot/proxy/haproxy/ProxyProtocolHeader.java b/src/test/java/org/littleshoot/proxy/haproxy/ProxyProtocolHeader.java
index d989139b..7a354bb2 100644
--- a/src/test/java/org/littleshoot/proxy/haproxy/ProxyProtocolHeader.java
+++ b/src/test/java/org/littleshoot/proxy/haproxy/ProxyProtocolHeader.java
@@ -2,10 +2,10 @@
class ProxyProtocolHeader {
- private String sourceAddress;
- private String destinationAddress;
- private String sourcePort;
- private String destinationPort;
+ private final String sourceAddress;
+ private final String destinationAddress;
+ private final String sourcePort;
+ private final String destinationPort;
ProxyProtocolHeader(String sourceAddress, String destinationAddress, String sourcePort, String destinationPort) {
this.sourceAddress = sourceAddress;
From 2765302ad69d4511c20ff98f87785cc4944059bb Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Fri, 6 May 2022 20:52:18 +0300
Subject: [PATCH 088/973] remove usages of deprecated method
$$.stream().forEach()
---
.../org/littleshoot/proxy/impl/ClientToProxyConnection.java | 3 +--
.../org/littleshoot/proxy/impl/ProxyToServerConnection.java | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java b/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
index eb097043..005db9bd 100644
--- a/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
+++ b/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
@@ -510,8 +510,7 @@ private void switchToWebSocketProtocol(final ProxyToServerConnection serverConne
this.channel.pipeline().replace(MAIN_HANDLER_NAME, "pipe-to-server",
new ProxyConnectionPipeHandler(serverConnection));
}
- orderedHandlersToRemove.stream()
- .forEach(this::removeHandlerIfPresent);
+ orderedHandlersToRemove.forEach(this::removeHandlerIfPresent);
serverConnection.switchToWebSocketProtocol();
}
diff --git a/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java b/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java
index 28286a4c..1a1832ff 100644
--- a/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java
+++ b/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java
@@ -1210,8 +1210,7 @@ void switchToWebSocketProtocol() {
this.channel.pipeline().replace(MAIN_HANDLER_NAME, "pipe-to-client",
new ProxyConnectionPipeHandler(clientConnection));
}
- orderedHandlersToRemove.stream()
- .forEach(this::removeHandlerIfPresent);
+ orderedHandlersToRemove.forEach(this::removeHandlerIfPresent);
}
/* *************************************************************************
From 19cf3e152f29a4d0763cf72e6143b9fd60359d2d Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Fri, 6 May 2022 20:54:30 +0300
Subject: [PATCH 089/973] remove usages of deprecated method
org.junit.Assert.assertThat()
---
src/test/java/org/littleshoot/proxy/AbstractProxyTest.java | 2 +-
src/test/java/org/littleshoot/proxy/BaseChainedProxyTest.java | 2 +-
src/test/java/org/littleshoot/proxy/EndToEndStoppingTest.java | 2 +-
src/test/java/org/littleshoot/proxy/IdleTest.java | 2 +-
src/test/java/org/littleshoot/proxy/KeepAliveTest.java | 2 +-
src/test/java/org/littleshoot/proxy/MitmProxyTest.java | 2 +-
.../java/org/littleshoot/proxy/MitmWithChainedProxyTest.java | 2 +-
src/test/java/org/littleshoot/proxy/ProxyHeadersTest.java | 2 +-
src/test/java/org/littleshoot/proxy/ThrottlingTest.java | 2 +-
src/test/java/org/littleshoot/proxy/TimeoutTest.java | 2 +-
10 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/test/java/org/littleshoot/proxy/AbstractProxyTest.java b/src/test/java/org/littleshoot/proxy/AbstractProxyTest.java
index 26a53d9e..6174e43c 100644
--- a/src/test/java/org/littleshoot/proxy/AbstractProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/AbstractProxyTest.java
@@ -21,7 +21,7 @@
import static org.hamcrest.Matchers.greaterThan;
import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Base for tests that test the proxy. This base class encapsulates all of the
diff --git a/src/test/java/org/littleshoot/proxy/BaseChainedProxyTest.java b/src/test/java/org/littleshoot/proxy/BaseChainedProxyTest.java
index a112cbf0..c567a00f 100644
--- a/src/test/java/org/littleshoot/proxy/BaseChainedProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/BaseChainedProxyTest.java
@@ -12,7 +12,7 @@
import static org.hamcrest.Matchers.in;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Base class for tests that test a proxy chained to an upstream proxy. In
diff --git a/src/test/java/org/littleshoot/proxy/EndToEndStoppingTest.java b/src/test/java/org/littleshoot/proxy/EndToEndStoppingTest.java
index 1b8acf85..4d7faa27 100644
--- a/src/test/java/org/littleshoot/proxy/EndToEndStoppingTest.java
+++ b/src/test/java/org/littleshoot/proxy/EndToEndStoppingTest.java
@@ -27,7 +27,7 @@
import static org.hamcrest.Matchers.greaterThan;
import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.mockserver.model.HttpRequest.request;
import static org.mockserver.model.HttpResponse.response;
diff --git a/src/test/java/org/littleshoot/proxy/IdleTest.java b/src/test/java/org/littleshoot/proxy/IdleTest.java
index 7102bdff..81858ffd 100644
--- a/src/test/java/org/littleshoot/proxy/IdleTest.java
+++ b/src/test/java/org/littleshoot/proxy/IdleTest.java
@@ -12,7 +12,7 @@
import java.net.URL;
import static org.hamcrest.Matchers.lessThan;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.littleshoot.proxy.TestUtils.disableOnMac;
import static org.littleshoot.proxy.TestUtils.requireUnix;
diff --git a/src/test/java/org/littleshoot/proxy/KeepAliveTest.java b/src/test/java/org/littleshoot/proxy/KeepAliveTest.java
index 3b72b686..daee5586 100644
--- a/src/test/java/org/littleshoot/proxy/KeepAliveTest.java
+++ b/src/test/java/org/littleshoot/proxy/KeepAliveTest.java
@@ -27,7 +27,7 @@
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.startsWith;
import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertTrue;
import static org.mockserver.model.HttpRequest.request;
import static org.mockserver.model.HttpResponse.response;
diff --git a/src/test/java/org/littleshoot/proxy/MitmProxyTest.java b/src/test/java/org/littleshoot/proxy/MitmProxyTest.java
index be08c8c7..5949f30b 100644
--- a/src/test/java/org/littleshoot/proxy/MitmProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/MitmProxyTest.java
@@ -13,7 +13,7 @@
import static java.nio.charset.StandardCharsets.UTF_8;
import static org.hamcrest.Matchers.hasItem;
import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests just a single basic proxy running as a man in the middle.
diff --git a/src/test/java/org/littleshoot/proxy/MitmWithChainedProxyTest.java b/src/test/java/org/littleshoot/proxy/MitmWithChainedProxyTest.java
index fc4ef457..131db19f 100644
--- a/src/test/java/org/littleshoot/proxy/MitmWithChainedProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/MitmWithChainedProxyTest.java
@@ -13,7 +13,7 @@
import static java.nio.charset.StandardCharsets.UTF_8;
import static org.hamcrest.Matchers.hasItem;
import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests a proxy that runs as a MITM and which is chained with
diff --git a/src/test/java/org/littleshoot/proxy/ProxyHeadersTest.java b/src/test/java/org/littleshoot/proxy/ProxyHeadersTest.java
index 93a1ea69..c8560353 100644
--- a/src/test/java/org/littleshoot/proxy/ProxyHeadersTest.java
+++ b/src/test/java/org/littleshoot/proxy/ProxyHeadersTest.java
@@ -14,7 +14,7 @@
import org.mockserver.model.ConnectionOptions;
import static org.hamcrest.Matchers.emptyArray;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.mockserver.model.HttpRequest.request;
import static org.mockserver.model.HttpResponse.response;
diff --git a/src/test/java/org/littleshoot/proxy/ThrottlingTest.java b/src/test/java/org/littleshoot/proxy/ThrottlingTest.java
index 8e1e354a..7c83ba6c 100644
--- a/src/test/java/org/littleshoot/proxy/ThrottlingTest.java
+++ b/src/test/java/org/littleshoot/proxy/ThrottlingTest.java
@@ -21,7 +21,7 @@
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.lessThan;
import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
@Category(SlowTest.class)
@FixMethodOrder(MethodSorters.JVM)
diff --git a/src/test/java/org/littleshoot/proxy/TimeoutTest.java b/src/test/java/org/littleshoot/proxy/TimeoutTest.java
index 98501154..6477a8ed 100644
--- a/src/test/java/org/littleshoot/proxy/TimeoutTest.java
+++ b/src/test/java/org/littleshoot/proxy/TimeoutTest.java
@@ -20,7 +20,7 @@
import static org.hamcrest.Matchers.lessThan;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.mockserver.model.HttpRequest.request;
import static org.mockserver.model.HttpResponse.response;
From 688f1baff3f6ded5d0c57ef762068d561f203bb4 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Fri, 6 May 2022 21:00:47 +0300
Subject: [PATCH 090/973] remove usages of deprecated JUnit4 apis
---
.../littleshoot/proxy/AbstractProxyTest.java | 10 ++++-----
.../littleshoot/proxy/DirectRequestTest.java | 4 +++-
.../org/littleshoot/proxy/HttpFilterTest.java | 6 +++++-
.../proxy/MessageTerminationTest.java | 4 +++-
.../proxy/impl/ProxyUtilsTest.java | 21 ++++++++++++++++---
5 files changed, 33 insertions(+), 12 deletions(-)
diff --git a/src/test/java/org/littleshoot/proxy/AbstractProxyTest.java b/src/test/java/org/littleshoot/proxy/AbstractProxyTest.java
index 6174e43c..930a7e38 100644
--- a/src/test/java/org/littleshoot/proxy/AbstractProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/AbstractProxyTest.java
@@ -176,8 +176,7 @@ protected ResponseInfo httpGetWithApacheClient(HttpHost host,
HttpHead request = new HttpHead(resourceUrl);
request.setConfig(TestUtils.REQUEST_TIMEOUT_CONFIG);
HttpResponse response = httpClient.execute(host, request);
- contentLength = new Integer(response.getFirstHeader(
- "Content-Length").getValue());
+ contentLength = Integer.valueOf(response.getFirstHeader("Content-Length").getValue());
}
HttpGet request = new HttpGet(resourceUrl);
@@ -188,10 +187,9 @@ protected ResponseInfo httpGetWithApacheClient(HttpHost host,
if (contentLength != null) {
assertEquals(
- "Content-Length from GET should match that from HEAD",
- contentLength,
- new Integer(response.getFirstHeader("Content-Length")
- .getValue()));
+ "Content-Length from GET should match that from HEAD",
+ contentLength,
+ Integer.valueOf(response.getFirstHeader("Content-Length").getValue()));
}
return new ResponseInfo(response.getStatusLine().getStatusCode(),
EntityUtils.toString(resEntity));
diff --git a/src/test/java/org/littleshoot/proxy/DirectRequestTest.java b/src/test/java/org/littleshoot/proxy/DirectRequestTest.java
index 5b93546b..3f1d758a 100644
--- a/src/test/java/org/littleshoot/proxy/DirectRequestTest.java
+++ b/src/test/java/org/littleshoot/proxy/DirectRequestTest.java
@@ -11,7 +11,9 @@
import java.util.concurrent.atomic.AtomicBoolean;
import static org.hamcrest.Matchers.instanceOf;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
/**
* This class tests direct requests to the proxy server, which causes endless
diff --git a/src/test/java/org/littleshoot/proxy/HttpFilterTest.java b/src/test/java/org/littleshoot/proxy/HttpFilterTest.java
index c77277ed..96fadff1 100644
--- a/src/test/java/org/littleshoot/proxy/HttpFilterTest.java
+++ b/src/test/java/org/littleshoot/proxy/HttpFilterTest.java
@@ -25,8 +25,12 @@
import java.util.concurrent.atomic.AtomicLongArray;
import java.util.concurrent.atomic.AtomicReference;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.lessThan;
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import static org.mockserver.model.HttpRequest.request;
diff --git a/src/test/java/org/littleshoot/proxy/MessageTerminationTest.java b/src/test/java/org/littleshoot/proxy/MessageTerminationTest.java
index a7f05737..dc27b81c 100644
--- a/src/test/java/org/littleshoot/proxy/MessageTerminationTest.java
+++ b/src/test/java/org/littleshoot/proxy/MessageTerminationTest.java
@@ -14,9 +14,11 @@
import org.mockserver.matchers.Times;
import org.mockserver.model.ConnectionOptions;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.emptyArray;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNull;
import static org.mockserver.model.HttpRequest.request;
import static org.mockserver.model.HttpResponse.response;
diff --git a/src/test/java/org/littleshoot/proxy/impl/ProxyUtilsTest.java b/src/test/java/org/littleshoot/proxy/impl/ProxyUtilsTest.java
index 53be3450..bf7217ae 100644
--- a/src/test/java/org/littleshoot/proxy/impl/ProxyUtilsTest.java
+++ b/src/test/java/org/littleshoot/proxy/impl/ProxyUtilsTest.java
@@ -1,6 +1,16 @@
package org.littleshoot.proxy.impl;
-import io.netty.handler.codec.http.*;
+import io.netty.handler.codec.http.DefaultFullHttpRequest;
+import io.netty.handler.codec.http.DefaultHttpHeaders;
+import io.netty.handler.codec.http.DefaultHttpMessage;
+import io.netty.handler.codec.http.DefaultHttpResponse;
+import io.netty.handler.codec.http.HttpHeaderNames;
+import io.netty.handler.codec.http.HttpHeaders;
+import io.netty.handler.codec.http.HttpMessage;
+import io.netty.handler.codec.http.HttpMethod;
+import io.netty.handler.codec.http.HttpResponse;
+import io.netty.handler.codec.http.HttpResponseStatus;
+import io.netty.handler.codec.http.HttpVersion;
import org.junit.Test;
import java.util.ArrayList;
@@ -8,8 +18,13 @@
import java.util.List;
import static java.util.Collections.singletonList;
-import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.contains;
+import static org.hamcrest.Matchers.empty;
+import static org.hamcrest.Matchers.hasSize;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
/**
* Test for proxy utilities.
From 901502ffbfaa9da7d9fb06b9e1919f2a5289eb2b Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Fri, 6 May 2022 21:09:23 +0300
Subject: [PATCH 091/973] replace http: by https:
---
pom.xml | 2 +-
.../proxy/extras/HAProxyMessageEncoder.java | 2 +-
.../proxy/impl/ClientToProxyConnection.java | 2 +-
.../java/org/littleshoot/proxy/impl/ProxyUtils.java | 10 +++++-----
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/pom.xml b/pom.xml
index bacadaf4..3bf5aea9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
The Apache Software License, Version 2.0
- http://www.apache.org/licenses/LICENSE-2.0
+ https://www.apache.org/licenses/LICENSE-2.0
diff --git a/src/main/java/org/littleshoot/proxy/extras/HAProxyMessageEncoder.java b/src/main/java/org/littleshoot/proxy/extras/HAProxyMessageEncoder.java
index a58fb928..a8119902 100644
--- a/src/main/java/org/littleshoot/proxy/extras/HAProxyMessageEncoder.java
+++ b/src/main/java/org/littleshoot/proxy/extras/HAProxyMessageEncoder.java
@@ -7,7 +7,7 @@
/**
* Encodes an HAProxy proxy protocol header
*
- * @see Proxy Protocol Specification
+ * @see Proxy Protocol Specification
*/
public class HAProxyMessageEncoder extends MessageToByteEncoder {
diff --git a/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java b/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
index 005db9bd..d45f86dd 100644
--- a/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
+++ b/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
@@ -383,7 +383,7 @@ OPTIONS request (as detailed below), a client MUST send the target
URI in absolute-form as the request-target.
[...]
An example absolute-form of request-line would be:
- GET http://www.example.org/pub/WWW/TheProject.html HTTP/1.1
+ GET https://www.example.org/pub/WWW/TheProject.html HTTP/1.1
To allow for transition to the absolute-form for all requests in some
future version of HTTP, a server MUST accept the absolute-form in
requests, even though HTTP/1.1 clients will only send them in
diff --git a/src/main/java/org/littleshoot/proxy/impl/ProxyUtils.java b/src/main/java/org/littleshoot/proxy/impl/ProxyUtils.java
index 68c3a520..04320cf3 100644
--- a/src/main/java/org/littleshoot/proxy/impl/ProxyUtils.java
+++ b/src/main/java/org/littleshoot/proxy/impl/ProxyUtils.java
@@ -26,7 +26,7 @@
public class ProxyUtils {
/**
* Hop-by-hop headers that should be removed when proxying, as defined by the HTTP 1.1 spec, section 13.5.1
- * (http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.5.1). Transfer-Encoding is NOT included in this list, since LittleProxy
+ * (https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.5.1). Transfer-Encoding is NOT included in this list, since LittleProxy
* does not typically modify the transfer encoding. See also {@link #shouldRemoveHopByHopHeader(String)}.
*
* Header names are stored as lowercase to make case-insensitive comparisons easier.
@@ -59,12 +59,12 @@ public class ProxyUtils {
private static final String PATTERN_RFC1123 = "EEE, dd MMM yyyy HH:mm:ss zzz";
// Schemes are case-insensitive:
- // http://tools.ietf.org/html/rfc3986#section-3.1
+ // https://tools.ietf.org/html/rfc3986#section-3.1
private static final Pattern HTTP_PREFIX = Pattern.compile("^(http|ws)s?://.*",
Pattern.CASE_INSENSITIVE);
/**
- * Strips the host from a URI string. This will turn "http://host.com/path"
+ * Strips the host from a URI string. This will turn "https://host.com/path"
* into "/path".
*
* @param uri
@@ -338,7 +338,7 @@ public static boolean isContentAlwaysEmpty(HttpMessage msg) {
// Correctly handle return codes of 1xx.
//
// See:
- // - http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html Section 4.4
+ // - https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html Section 4.4
// - https://github.com/netty/netty/issues/222
if (code >= 100 && code < 200) {
// According to RFC 7231, section 6.1, 1xx responses have no content (https://tools.ietf.org/html/rfc7231#section-6.2):
@@ -495,7 +495,7 @@ public static String getHostName() {
/**
* Determines if the specified header should be removed from the proxied response because it is a hop-by-hop header, as defined by the
* HTTP 1.1 spec in section 13.5.1. The comparison is case-insensitive, so "Connection" will be treated the same as "connection" or "CONNECTION".
- * From http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.5.1 :
+ * From https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.5.1 :
*
The following HTTP/1.1 headers are hop-by-hop headers:
- Connection
From 55cb9ff11f37676ee15a4fdc635dbfe5db8f5cce Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Fri, 6 May 2022 22:46:18 +0300
Subject: [PATCH 092/973] release LittleProxy 2.0.8
---
README.md | 4 ++--
RELEASE_NOTES.md | 13 ++++++++++---
pom.xml | 4 ++--
3 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index dc4b514f..064615d2 100644
--- a/README.md
+++ b/README.md
@@ -19,13 +19,13 @@ You can embed LittleProxy in your own projects through Maven with the following:
xyz.rogfamlittleproxy
- 2.0.7
+ 2.0.8
```
Or with Gradle like this
-`compile "xyz.rogfam:littleproxy:2.0.7"`
+`compile "xyz.rogfam:littleproxy:2.0.8"`
Once you've included LittleProxy, you can start the server with the following:
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 1cd1c836..7ce9cedc 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -1,9 +1,16 @@
# Release Notes
- 2.0.8
- - Bumped log4j-core from 2.17.0 to 2.17.1
- - Bumped netty from 4.1.71 to 4.1.72
- - Bumped slf4j from 1.7.30 to 1.7.32
+ - #26 fixed TLS 1.3 handshake bug -- thanks Dan Powell for PR https://github.com/LittleProxy/LittleProxy/pull/26
+ - Bumped log4j-core from 2.17.0 to 2.17.2
+ - Bumped netty from 4.1.71 to 4.1.76
+ - Bumped slf4j from 1.7.30 to 1.7.36
+ - Bumped jackson from 2.11.3 to 2.12.6.1
+ - Bumped guava from 30.1-jre to 31.1-jre
+ - Bumped commons-cli from 1.4 to 1.5.0
+ - Relocated slf4j-log4j to slf4j-reload4j
+ - moved the project to https://github.com/LittleProxy/LittleProxy
+ - moved CI from Travis to https://github.com/LittleProxy/LittleProxy/actions
- 2.0.7
- Bumped log4j-core from 2.16.0 to 2.17.0
diff --git a/pom.xml b/pom.xml
index 3bf5aea9..e492d872 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
xyz.rogfamlittleproxyjar
- 2.0.8-SNAPSHOT
+ 2.0.8LittleProxy
LittleProxy is a high performance HTTP proxy written in Java and using the Netty networking framework.
@@ -508,7 +508,7 @@
org.apache.maven.pluginsmaven-gpg-plugin
- 1.6
+ 3.0.1
From d9c7ef7a2d50241e11e8a83c7433275de8de7209 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Fri, 6 May 2022 22:54:50 +0300
Subject: [PATCH 093/973] ignore (generated) file dependency-reduced-pom.xml
---
.gitignore | 1 +
1 file changed, 1 insertion(+)
diff --git a/.gitignore b/.gitignore
index eb7fa26c..f17f9143 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,6 +9,7 @@ log.txt
*.DS_Store
*.orig
target/
+dependency-reduced-pom.xml
.idea/
jmeter.log
lib/
From 1ac61cc6df6001d33edb89a546310c63083bf6c8 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 9 May 2022 01:43:45 +0000
Subject: [PATCH 094/973] Bump selenium-java from 3.141.59 to 4.1.4
Bumps [selenium-java](https://github.com/SeleniumHQ/selenium) from 3.141.59 to 4.1.4.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Commits](https://github.com/SeleniumHQ/selenium/commits)
---
updated-dependencies:
- dependency-name: org.seleniumhq.selenium:selenium-java
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index e492d872..dbb20b1d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -222,7 +222,7 @@
org.seleniumhq.seleniumselenium-java
- 3.141.59
+ 4.1.4test
From 03fd5fbeacd40329a082193372a3fd0225895a92 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 9 May 2022 01:43:09 +0000
Subject: [PATCH 095/973] Bump netty.version from 4.1.76.Final to 4.1.77.Final
Bumps `netty.version` from 4.1.76.Final to 4.1.77.Final.
Updates `netty-all` from 4.1.76.Final to 4.1.77.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.76.Final...netty-4.1.77.Final)
Updates `netty-example` from 4.1.76.Final to 4.1.77.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.76.Final...netty-4.1.77.Final)
Updates `netty-buffer` from 4.1.76.Final to 4.1.77.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.76.Final...netty-4.1.77.Final)
Updates `netty-codec` from 4.1.76.Final to 4.1.77.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.76.Final...netty-4.1.77.Final)
Updates `netty-codec-haproxy` from 4.1.76.Final to 4.1.77.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.76.Final...netty-4.1.77.Final)
Updates `netty-codec-http` from 4.1.76.Final to 4.1.77.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.76.Final...netty-4.1.77.Final)
Updates `netty-codec-socks` from 4.1.76.Final to 4.1.77.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.76.Final...netty-4.1.77.Final)
Updates `netty-common` from 4.1.76.Final to 4.1.77.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.76.Final...netty-4.1.77.Final)
Updates `netty-handler` from 4.1.76.Final to 4.1.77.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.76.Final...netty-4.1.77.Final)
Updates `netty-handler-proxy` from 4.1.76.Final to 4.1.77.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.76.Final...netty-4.1.77.Final)
Updates `netty-transport` from 4.1.76.Final to 4.1.77.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.76.Final...netty-4.1.77.Final)
Updates `netty-transport-rxtx` from 4.1.76.Final to 4.1.77.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.76.Final...netty-4.1.77.Final)
Updates `netty-transport-sctp` from 4.1.76.Final to 4.1.77.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.76.Final...netty-4.1.77.Final)
Updates `netty-transport-udp` from 4.1.76.Final to 4.1.77.Final
---
updated-dependencies:
- dependency-name: io.netty:netty-all
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-example
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-buffer
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-haproxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-http
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-socks
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-common
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler-proxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-rxtx
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-sctp
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-udp
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index dbb20b1d..f391ed82 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
UTF-8UTF-8github
- 4.1.76.Final
+ 4.1.77.Final1.7.361.8
From 5504be3efa3e1e144f41b8e772f4a67df21db45e Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Tue, 10 May 2022 10:26:41 +0300
Subject: [PATCH 096/973] #115 reverted to maven-shade-plugin 3.2.4 (because
3.3.0 generated artifact without compile/runtime dependencies)
---
README.md | 4 ++--
RELEASE_NOTES.md | 3 +++
pom.xml | 4 ++--
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 064615d2..ede41142 100644
--- a/README.md
+++ b/README.md
@@ -19,13 +19,13 @@ You can embed LittleProxy in your own projects through Maven with the following:
xyz.rogfamlittleproxy
- 2.0.8
+ 2.0.9
```
Or with Gradle like this
-`compile "xyz.rogfam:littleproxy:2.0.8"`
+`compile "xyz.rogfam:littleproxy:2.0.9"`
Once you've included LittleProxy, you can start the server with the following:
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 7ce9cedc..bca28f31 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -1,5 +1,8 @@
# Release Notes
+- 2.0.9
+ - #115 reverted to maven-shade-plugin 3.2.4 (because 3.3.0 generated artifact without compile/runtime dependencies)
+
- 2.0.8
- #26 fixed TLS 1.3 handshake bug -- thanks Dan Powell for PR https://github.com/LittleProxy/LittleProxy/pull/26
- Bumped log4j-core from 2.17.0 to 2.17.2
diff --git a/pom.xml b/pom.xml
index f391ed82..fb50a6ad 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
xyz.rogfamlittleproxyjar
- 2.0.8
+ 2.0.9LittleProxy
LittleProxy is a high performance HTTP proxy written in Java and using the Netty networking framework.
@@ -542,7 +542,7 @@
org.apache.maven.pluginsmaven-shade-plugin
- 3.3.0
+ 3.2.4package
From df698fc4be2ce428a21c1c880f60dfd891487885 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 16 May 2022 01:05:18 +0000
Subject: [PATCH 097/973] Bump dnsjava from 3.5.0 to 3.5.1
Bumps [dnsjava](https://github.com/dnsjava/dnsjava) from 3.5.0 to 3.5.1.
- [Release notes](https://github.com/dnsjava/dnsjava/releases)
- [Changelog](https://github.com/dnsjava/dnsjava/blob/v3.5.1/Changelog)
- [Commits](https://github.com/dnsjava/dnsjava/compare/v3.5.0...v3.5.1)
---
updated-dependencies:
- dependency-name: dnsjava:dnsjava
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index fb50a6ad..f32a82de 100644
--- a/pom.xml
+++ b/pom.xml
@@ -278,7 +278,7 @@
dnsjavadnsjava
- 3.5.0
+ 3.5.1true
From 23298ad5aa34551fe9b9395e5dc06ebf6bc9c701 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 23 May 2022 01:11:16 +0000
Subject: [PATCH 098/973] Bump versions-maven-plugin from 2.10.0 to 2.11.0
Bumps [versions-maven-plugin](https://github.com/mojohaus/versions-maven-plugin) from 2.10.0 to 2.11.0.
- [Release notes](https://github.com/mojohaus/versions-maven-plugin/releases)
- [Changelog](https://github.com/mojohaus/versions-maven-plugin/blob/master/ReleaseNotes.md)
- [Commits](https://github.com/mojohaus/versions-maven-plugin/compare/versions-maven-plugin-2.10.0...versions-maven-plugin-2.11.0)
---
updated-dependencies:
- dependency-name: org.codehaus.mojo:versions-maven-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index f32a82de..38abce8f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -701,7 +701,7 @@
org.codehaus.mojoversions-maven-plugin
- 2.10.0
+ 2.11.0
From 0340e2c13902546e12d0f1d2bdc44402ce3e3bdb Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 9 May 2022 01:43:51 +0000
Subject: [PATCH 099/973] Bump taglist-maven-plugin from 2.4 to 3.0.0
Bumps [taglist-maven-plugin](https://github.com/mojohaus/taglist-maven-plugin) from 2.4 to 3.0.0.
- [Release notes](https://github.com/mojohaus/taglist-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/taglist-maven-plugin/compare/taglist-maven-plugin-2.4...taglist-maven-plugin-3.0.0)
---
updated-dependencies:
- dependency-name: org.codehaus.mojo:taglist-maven-plugin
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 38abce8f..8265bec1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -717,7 +717,7 @@
org.codehaus.mojotaglist-maven-plugin
- 2.4
+ 3.0.0true
From fd7fe3d06bb0e0610db05667839397c933b94fba Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 30 May 2022 01:13:28 +0000
Subject: [PATCH 100/973] Bump selenium-java from 4.1.4 to 4.2.0
Bumps [selenium-java](https://github.com/SeleniumHQ/selenium) from 4.1.4 to 4.2.0.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Commits](https://github.com/SeleniumHQ/selenium/commits/selenium-4.2.0)
---
updated-dependencies:
- dependency-name: org.seleniumhq.selenium:selenium-java
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 8265bec1..97b92bbc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -222,7 +222,7 @@
org.seleniumhq.seleniumselenium-java
- 4.1.4
+ 4.2.0test
From 88d1cefd33d2d4c10fc7cc7700ff9d8927f377ee Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 6 Jun 2022 01:05:19 +0000
Subject: [PATCH 101/973] Bump maven-pmd-plugin from 3.16.0 to 3.17.0
Bumps [maven-pmd-plugin](https://github.com/apache/maven-pmd-plugin) from 3.16.0 to 3.17.0.
- [Release notes](https://github.com/apache/maven-pmd-plugin/releases)
- [Commits](https://github.com/apache/maven-pmd-plugin/compare/maven-pmd-plugin-3.16.0...maven-pmd-plugin-3.17.0)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-pmd-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 97b92bbc..042809a2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -689,7 +689,7 @@
org.apache.maven.pluginsmaven-pmd-plugin
- 3.16.0
+ 3.17.0trueutf-8
From a20dd2988e9a1226e07582ab47f2cb15f1a62dec Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 6 Jun 2022 01:05:03 +0000
Subject: [PATCH 102/973] Bump selenium-java from 4.2.0 to 4.2.1
Bumps [selenium-java](https://github.com/SeleniumHQ/selenium) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Commits](https://github.com/SeleniumHQ/selenium/commits)
---
updated-dependencies:
- dependency-name: org.seleniumhq.selenium:selenium-java
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 042809a2..a539ab10 100644
--- a/pom.xml
+++ b/pom.xml
@@ -222,7 +222,7 @@
org.seleniumhq.seleniumselenium-java
- 4.2.0
+ 4.2.1test
From e89182c78b92f006760e6d3f8909f463e7ff27b0 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 6 Jun 2022 01:04:49 +0000
Subject: [PATCH 103/973] Bump mockito-core from 4.5.1 to 4.6.1
Bumps [mockito-core](https://github.com/mockito/mockito) from 4.5.1 to 4.6.1.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.5.1...v4.6.1)
---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index a539ab10..92eb2362 100644
--- a/pom.xml
+++ b/pom.xml
@@ -202,7 +202,7 @@
org.mockitomockito-core
- 4.5.1
+ 4.6.1test
From 0d5984dbf79c842cff1c8503bf129b0cd44b162b Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 13 Jun 2022 01:04:41 +0000
Subject: [PATCH 104/973] Bump maven-surefire-plugin from 3.0.0-M6 to 3.0.0-M7
Bumps [maven-surefire-plugin](https://github.com/apache/maven-surefire) from 3.0.0-M6 to 3.0.0-M7.
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.0.0-M6...surefire-3.0.0-M7)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-surefire-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 92eb2362..a609b9d6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -502,7 +502,7 @@
org.apache.maven.pluginsmaven-surefire-plugin
- 3.0.0-M6
+ 3.0.0-M7
From 9c7c2bba4f84512a5e89813d3e5d763387981512 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 13 Jun 2022 01:04:31 +0000
Subject: [PATCH 105/973] Bump selenium-java from 4.2.1 to 4.2.2
Bumps [selenium-java](https://github.com/SeleniumHQ/selenium) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Commits](https://github.com/SeleniumHQ/selenium/commits)
---
updated-dependencies:
- dependency-name: org.seleniumhq.selenium:selenium-java
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index a609b9d6..b8028942 100644
--- a/pom.xml
+++ b/pom.xml
@@ -222,7 +222,7 @@
org.seleniumhq.seleniumselenium-java
- 4.2.1
+ 4.2.2test
From a24567af8221f73bdc744cc7f27c4805735b4a5b Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 13 Jun 2022 01:04:24 +0000
Subject: [PATCH 106/973] Bump maven-surefire-report-plugin from 3.0.0-M6 to
3.0.0-M7
Bumps [maven-surefire-report-plugin](https://github.com/apache/maven-surefire) from 3.0.0-M6 to 3.0.0-M7.
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.0.0-M6...surefire-3.0.0-M7)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-surefire-report-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index b8028942..f7cdac19 100644
--- a/pom.xml
+++ b/pom.xml
@@ -640,7 +640,7 @@
org.apache.maven.pluginsmaven-surefire-report-plugin
- 3.0.0-M6
+ 3.0.0-M7false
From be036af3c695d089517ebf8758b5b0a88662cfe7 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 13 Jun 2022 01:04:18 +0000
Subject: [PATCH 107/973] Bump maven-enforcer-plugin from 3.0.0 to 3.1.0
Bumps [maven-enforcer-plugin](https://github.com/apache/maven-enforcer) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/apache/maven-enforcer/releases)
- [Commits](https://github.com/apache/maven-enforcer/compare/enforcer-3.0.0...enforcer-3.1.0)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-enforcer-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index f7cdac19..afe2b431 100644
--- a/pom.xml
+++ b/pom.xml
@@ -417,7 +417,7 @@
org.apache.maven.pluginsmaven-enforcer-plugin
- 3.0.0
+ 3.1.0
From 2b99e90bdf9380b2d7c7cee0a22573c5453380a2 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 20 Jun 2022 01:10:58 +0000
Subject: [PATCH 108/973] Bump netty.version from 4.1.77.Final to 4.1.78.Final
Bumps `netty.version` from 4.1.77.Final to 4.1.78.Final.
Updates `netty-all` from 4.1.77.Final to 4.1.78.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.77.Final...netty-4.1.78.Final)
Updates `netty-example` from 4.1.77.Final to 4.1.78.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.77.Final...netty-4.1.78.Final)
Updates `netty-buffer` from 4.1.77.Final to 4.1.78.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.77.Final...netty-4.1.78.Final)
Updates `netty-codec` from 4.1.77.Final to 4.1.78.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.77.Final...netty-4.1.78.Final)
Updates `netty-codec-haproxy` from 4.1.77.Final to 4.1.78.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.77.Final...netty-4.1.78.Final)
Updates `netty-codec-http` from 4.1.77.Final to 4.1.78.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.77.Final...netty-4.1.78.Final)
Updates `netty-codec-socks` from 4.1.77.Final to 4.1.78.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.77.Final...netty-4.1.78.Final)
Updates `netty-common` from 4.1.77.Final to 4.1.78.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.77.Final...netty-4.1.78.Final)
Updates `netty-handler` from 4.1.77.Final to 4.1.78.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.77.Final...netty-4.1.78.Final)
Updates `netty-handler-proxy` from 4.1.77.Final to 4.1.78.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.77.Final...netty-4.1.78.Final)
Updates `netty-transport` from 4.1.77.Final to 4.1.78.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.77.Final...netty-4.1.78.Final)
Updates `netty-transport-rxtx` from 4.1.77.Final to 4.1.78.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.77.Final...netty-4.1.78.Final)
Updates `netty-transport-sctp` from 4.1.77.Final to 4.1.78.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.77.Final...netty-4.1.78.Final)
Updates `netty-transport-udp` from 4.1.77.Final to 4.1.78.Final
---
updated-dependencies:
- dependency-name: io.netty:netty-all
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-example
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-buffer
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-haproxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-http
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-socks
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-common
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler-proxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-rxtx
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-sctp
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-udp
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index afe2b431..c0b5f9ed 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
UTF-8UTF-8github
- 4.1.77.Final
+ 4.1.78.Final1.7.361.8
From 2b0949623ba42f40408d4c42463564123a54705e Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 27 Jun 2022 01:49:07 +0000
Subject: [PATCH 109/973] Bump selenium-java from 4.2.2 to 4.3.0
Bumps [selenium-java](https://github.com/SeleniumHQ/selenium) from 4.2.2 to 4.3.0.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Commits](https://github.com/SeleniumHQ/selenium/commits/selenium-4.3.0)
---
updated-dependencies:
- dependency-name: org.seleniumhq.selenium:selenium-java
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index c0b5f9ed..87f585fd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -222,7 +222,7 @@
org.seleniumhq.seleniumselenium-java
- 4.2.2
+ 4.3.0test
From 3f2a03151f9b6f6de25da51040b0ed09541eeb53 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 4 Jul 2022 01:04:04 +0000
Subject: [PATCH 110/973] Bump log4j-core from 2.17.2 to 2.18.0
Bumps log4j-core from 2.17.2 to 2.18.0.
---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-core
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 87f585fd..07afdf94 100644
--- a/pom.xml
+++ b/pom.xml
@@ -235,7 +235,7 @@
org.apache.logging.log4jlog4j-core
- 2.17.2
+ 2.18.0true
From dd148985aabafc7fef2e229be93c71b1598deed1 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 18 Jul 2022 01:13:24 +0000
Subject: [PATCH 111/973] Bump maven-project-info-reports-plugin from 3.3.0 to
3.4.0
Bumps [maven-project-info-reports-plugin](https://github.com/apache/maven-project-info-reports-plugin) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/apache/maven-project-info-reports-plugin/releases)
- [Commits](https://github.com/apache/maven-project-info-reports-plugin/compare/maven-project-info-reports-plugin-3.3.0...maven-project-info-reports-plugin-3.4.0)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-project-info-reports-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 07afdf94..65f793c3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -629,7 +629,7 @@
org.apache.maven.pluginsmaven-project-info-reports-plugin
- 3.3.0
+ 3.4.0
From 5270cf15fe56ec42b6531b5214509e83f57d7a0d Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 18 Jul 2022 01:12:44 +0000
Subject: [PATCH 112/973] Bump netty.version from 4.1.78.Final to 4.1.79.Final
Bumps `netty.version` from 4.1.78.Final to 4.1.79.Final.
Updates `netty-all` from 4.1.78.Final to 4.1.79.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.78.Final...netty-4.1.79.Final)
Updates `netty-example` from 4.1.78.Final to 4.1.79.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.78.Final...netty-4.1.79.Final)
Updates `netty-buffer` from 4.1.78.Final to 4.1.79.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.78.Final...netty-4.1.79.Final)
Updates `netty-codec` from 4.1.78.Final to 4.1.79.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.78.Final...netty-4.1.79.Final)
Updates `netty-codec-haproxy` from 4.1.78.Final to 4.1.79.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.78.Final...netty-4.1.79.Final)
Updates `netty-codec-http` from 4.1.78.Final to 4.1.79.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.78.Final...netty-4.1.79.Final)
Updates `netty-codec-socks` from 4.1.78.Final to 4.1.79.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.78.Final...netty-4.1.79.Final)
Updates `netty-common` from 4.1.78.Final to 4.1.79.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.78.Final...netty-4.1.79.Final)
Updates `netty-handler` from 4.1.78.Final to 4.1.79.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.78.Final...netty-4.1.79.Final)
Updates `netty-handler-proxy` from 4.1.78.Final to 4.1.79.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.78.Final...netty-4.1.79.Final)
Updates `netty-transport` from 4.1.78.Final to 4.1.79.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.78.Final...netty-4.1.79.Final)
Updates `netty-transport-rxtx` from 4.1.78.Final to 4.1.79.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.78.Final...netty-4.1.79.Final)
Updates `netty-transport-sctp` from 4.1.78.Final to 4.1.79.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.78.Final...netty-4.1.79.Final)
Updates `netty-transport-udp` from 4.1.78.Final to 4.1.79.Final
---
updated-dependencies:
- dependency-name: io.netty:netty-all
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-example
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-buffer
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-haproxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-http
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-socks
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-common
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler-proxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-rxtx
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-sctp
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-udp
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 65f793c3..05dd4c7a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
UTF-8UTF-8github
- 4.1.78.Final
+ 4.1.79.Final1.7.361.8
From 278ad7b5620966e287b7bd4df6aab5e0c7fa97b3 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Wed, 20 Jul 2022 11:24:47 +0300
Subject: [PATCH 113/973] release LittleProxy 2.0.10
---
README.md | 4 ++--
RELEASE_NOTES.md | 5 +++++
pom.xml | 2 +-
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index ede41142..2f6c9d0a 100644
--- a/README.md
+++ b/README.md
@@ -19,13 +19,13 @@ You can embed LittleProxy in your own projects through Maven with the following:
xyz.rogfamlittleproxy
- 2.0.9
+ 2.0.10
```
Or with Gradle like this
-`compile "xyz.rogfam:littleproxy:2.0.9"`
+`compile "xyz.rogfam:littleproxy:2.0.10"`
Once you've included LittleProxy, you can start the server with the following:
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index bca28f31..2979126a 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -1,5 +1,10 @@
# Release Notes
+- 2.0.10
+ - #135 Bump netty.version from 4.1.77.Final to 4.1.79.Final
+ - #132 Bump selenium-java from 4.1.4 to 4.3.0
+ - #118 Bump dnsjava from 3.5.0 to 3.5.1
+
- 2.0.9
- #115 reverted to maven-shade-plugin 3.2.4 (because 3.3.0 generated artifact without compile/runtime dependencies)
diff --git a/pom.xml b/pom.xml
index 05dd4c7a..a71ce1b7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
xyz.rogfamlittleproxyjar
- 2.0.9
+ 2.0.10LittleProxy
LittleProxy is a high performance HTTP proxy written in Java and using the Netty networking framework.
From 582825fdc6c858a2c0864590600ccebdb030acf9 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 25 Jul 2022 00:50:19 +0000
Subject: [PATCH 114/973] Bump maven-deploy-plugin from 3.0.0-M2 to 3.0.0
Bumps [maven-deploy-plugin](https://github.com/apache/maven-deploy-plugin) from 3.0.0-M2 to 3.0.0.
- [Release notes](https://github.com/apache/maven-deploy-plugin/releases)
- [Commits](https://github.com/apache/maven-deploy-plugin/compare/maven-deploy-plugin-3.0.0-M2...maven-deploy-plugin-3.0.0)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-deploy-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index a71ce1b7..dfe88d7c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -447,7 +447,7 @@
org.apache.maven.pluginsmaven-deploy-plugin
- 3.0.0-M2
+ 3.0.0
From d3d9981e6ef47abebf144a3cd74a4d29abc66c1b Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 25 Jul 2022 00:50:14 +0000
Subject: [PATCH 115/973] Bump maven-install-plugin from 3.0.0-M1 to 3.0.1
Bumps [maven-install-plugin](https://github.com/apache/maven-install-plugin) from 3.0.0-M1 to 3.0.1.
- [Release notes](https://github.com/apache/maven-install-plugin/releases)
- [Commits](https://github.com/apache/maven-install-plugin/compare/maven-install-plugin-3.0.0-M1...maven-install-plugin-3.0.1)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-install-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index dfe88d7c..ed6207af 100644
--- a/pom.xml
+++ b/pom.xml
@@ -464,7 +464,7 @@
org.apache.maven.pluginsmaven-install-plugin
- 3.0.0-M1
+ 3.0.1
From b3bb080135d237d091e4424e4e78ce930b47859d Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 8 Aug 2022 00:58:52 +0000
Subject: [PATCH 116/973] Bump maven-site-plugin from 3.12.0 to 3.12.1
Bumps [maven-site-plugin](https://github.com/apache/maven-site-plugin) from 3.12.0 to 3.12.1.
- [Release notes](https://github.com/apache/maven-site-plugin/releases)
- [Commits](https://github.com/apache/maven-site-plugin/compare/maven-site-plugin-3.12.0...maven-site-plugin-3.12.1)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-site-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ed6207af..dfe5f266 100644
--- a/pom.xml
+++ b/pom.xml
@@ -423,7 +423,7 @@
org.apache.maven.pluginsmaven-site-plugin
- 3.12.0
+ 3.12.1
From 6e607bd4d03018c7f1d18a797eb270b6a678d628 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Tue, 9 Aug 2022 00:03:19 +0300
Subject: [PATCH 117/973] #348 fix memory leak: release byte buffer when
closing request
This change continues PR https://github.com/adamfisk/LittleProxy/pull/351 - it seems it didn't cover all possible cases.
---
pom.xml | 2 +-
.../proxy/impl/ClientToProxyConnection.java | 74 ++++++++++---------
.../proxy/impl/ProxyToServerConnection.java | 48 ++++++------
3 files changed, 67 insertions(+), 57 deletions(-)
diff --git a/pom.xml b/pom.xml
index dfe5f266..db6bd8a6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
xyz.rogfamlittleproxyjar
- 2.0.10
+ 2.0.11-SNAPSHOTLittleProxy
LittleProxy is a high performance HTTP proxy written in Java and using the Netty networking framework.
diff --git a/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java b/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
index d45f86dd..d89a6423 100644
--- a/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
+++ b/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
@@ -66,7 +66,7 @@
* ClientToProxyConnection can have multiple {@link ProxyToServerConnection}s,
* at most one per outbound host:port.
*
- *
+ *
*
* Once a ProxyToServerConnection has been created for a given server, it is
* continually reused. The ProxyToServerConnection goes through its own
@@ -75,7 +75,7 @@
* per server. The one exception to this is CONNECT tunneling - if a connection
* has been used for CONNECT tunneling, that connection will never be reused.
*
- *
+ *
*
* As the ProxyToServerConnections receive responses from their servers, they
* feed these back to the client by calling
@@ -227,12 +227,12 @@ protected ConnectionState readHTTPInitial(HttpRequest httpRequest) {
*
* Reads an {@link HttpRequest}.
*
- *
+ *
*
* If we don't yet have a {@link ProxyToServerConnection} for the desired
* server, this takes care of creating it.
*
- *
+ *
*
* Note - the "server" could be a chained proxy, not the final endpoint for
* the request.
@@ -424,7 +424,7 @@ protected void readRaw(ByteBuf buf) {
/**
* Send a response to the client.
- *
+ *
* @param serverConnection
* the ProxyToServerConnection that's responding
* @param filters
@@ -442,10 +442,7 @@ void respond(ProxyToServerConnection serverConnection, HttpFilters filters,
HttpRequest currentHttpRequest, HttpResponse currentHttpResponse,
HttpObject httpObject) {
// we are sending a response to the client, so we are done handling this request
- if (currentRequest != null && currentRequest instanceof ReferenceCounted) {
- ((ReferenceCounted)currentRequest).release();
- }
- this.currentRequest = null;
+ resetCurrentRequest();
httpObject = filters.serverToProxyResponse(httpObject);
if (httpObject == null) {
@@ -503,6 +500,13 @@ else if (isSwitchingToWebSocketProtocol) {
currentHttpRequest, currentHttpResponse, httpObject);
}
+ private void resetCurrentRequest() {
+ if (currentRequest != null && currentRequest instanceof ReferenceCounted) {
+ ((ReferenceCounted) currentRequest).release();
+ }
+ this.currentRequest = null;
+ }
+
private void switchToWebSocketProtocol(final ProxyToServerConnection serverConnection) {
final List orderedHandlersToRemove = Arrays.asList(HTTP_REQUEST_READ_MONITOR_NAME,
HTTP_RESPONSE_WRITTEN_MONITOR_NAME, HTTP_PROXY_DECODER_NAME, HTTP_ENCODER_NAME, HTTP_DECODER_NAME);
@@ -606,23 +610,23 @@ protected void serverConnectionSucceeded(
/**
* If the {@link ProxyToServerConnection} fails to complete its connection
* lifecycle successfully, this method is called to let us know about it.
- *
+ *
*
* After failing to connect to the server, one of two things can happen:
*
- *
+ *
*
*
If the server was a chained proxy, we fall back to connecting to the
* ultimate endpoint directly.
*
If the server was the ultimate endpoint, we return a 502 Bad Gateway
* to the client.
*
- *
+ *
* @param serverConnection
* @param lastStateBeforeFailure
* @param cause
* what caused the failure
- *
+ *
* @return true if we're falling back to a another chained proxy (or direct
* connection) and trying again
*/
@@ -787,11 +791,11 @@ protected void exceptionCaught(Throwable cause) {
/**
* Initialize the {@link ChannelPipeline} for the client to proxy channel.
* LittleProxy acts like a server here.
- *
+ *
* A {@link ChannelPipeline} invokes the read (Inbound) handlers in
* ascending ordering of the list and then the write (Outbound) handlers in
* descending ordering.
- *
+ *
* Regarding the Javadoc of {@link HttpObjectAggregator} it's needed to have
* the {@link HttpResponseEncoder} or {@link io.netty.handler.codec.http.HttpRequestEncoder} before the
* {@link HttpObjectAggregator} in the {@link ChannelPipeline}.
@@ -830,7 +834,7 @@ private void initChannelPipeline(ChannelPipeline pipeline) {
pipeline.addLast(MAIN_HANDLER_NAME, this);
}
-
+
private void removeHandlerIfPresent(String name) {
removeHandlerIfPresent(channel.pipeline(), name);
}
@@ -921,20 +925,20 @@ private boolean shouldCloseClientConnection(HttpRequest req,
* Determines if the remote connection should be closed based on the request
* and response pair. If the request is HTTP 1.0 with no keep-alive header,
* for example, the connection should be closed.
- *
+ *
* This in part determines if we should close the connection. Here's the
* relevant section of RFC 2616:
- *
+ *
* "HTTP/1.1 defines the "close" connection option for the sender to signal
* that the connection will be closed after completion of the response. For
* example,
- *
+ *
* Connection: close
- *
+ *
* in either the request or the response header fields indicates that the
* connection SHOULD NOT be considered `persistent' (section 8.1) after the
* current request/response is complete."
- *
+ *
* @param req
* The request.
* @param res
@@ -986,11 +990,11 @@ private boolean shouldCloseServerConnection(HttpRequest req,
*
* Checks whether the given HttpRequest requires authentication.
*
- *
+ *
*
* If the request contains credentials, these are checked.
*
- *
+ *
*
* If authentication is still required, either because no credentials were
* provided or the credentials were wrong, this writes a 407 response to the
@@ -1022,7 +1026,7 @@ private boolean authenticationRequired(HttpRequest request) {
byte[] decodedValue = BaseEncoding.base64().decode(value);
String decodedString = new String(decodedValue, UTF_8);
-
+
String userName = StringUtils.substringBefore(decodedString, ":");
String password = StringUtils.substringAfter(decodedString, ":");
if (!authenticator.authenticate(userName, password)) {
@@ -1139,9 +1143,9 @@ private boolean isNextHopOriginServer() {
}
/*
- * Upstream SOCKS proxies are a special case because they do not
- * parse or modify the HTTP request in any way. If the upstream
- * chained proxy is a SOCKS proxy, we should treat it as if we
+ * Upstream SOCKS proxies are a special case because they do not
+ * parse or modify the HTTP request in any way. If the upstream
+ * chained proxy is a SOCKS proxy, we should treat it as if we
* are connecting directly to the origin server.
*/
switch (currentServerConnection.getChainedProxyType()) {
@@ -1173,7 +1177,7 @@ private void modifyResponseHeadersToReflectProxying(
/*
* RFC2616 Section 14.18
- *
+ *
* A received message that does not have a Date header field MUST be
* assigned one by the recipient if the message will be cached by
* that recipient or gatewayed via a protocol which requires a Date.
@@ -1188,7 +1192,7 @@ private void modifyResponseHeadersToReflectProxying(
* Switch the de-facto standard "Proxy-Connection" header to "Connection"
* when we pass it along to the remote host. This is largely undocumented
* but seems to be what most browsers and servers expect.
- *
+ *
* @param headers
* The headers to modify
*/
@@ -1203,12 +1207,12 @@ private void switchProxyConnectionHeader(HttpHeaders headers) {
/**
* RFC2616 Section 14.10
- *
+ *
* HTTP/1.1 proxies MUST parse the Connection header field before a message
* is forwarded and, for each connection-token in this field, remove any
* header field(s) from the message with the same name as the
* connection-token.
- *
+ *
* @param headers
* The headers to modify
*/
@@ -1229,7 +1233,7 @@ private void stripConnectionTokens(HttpHeaders headers) {
/**
* Removes all headers that should not be forwarded. See RFC 2616 13.5.1
* End-to-end and Hop-by-hop Headers.
- *
+ *
* @param headers
* The headers to modify
*/
@@ -1319,7 +1323,7 @@ private boolean writeGatewayTimeout(HttpRequest httpRequest) {
*/
private boolean respondWithShortCircuitResponse(HttpResponse httpResponse) {
// we are sending a response to the client, so we are done handling this request
- this.currentRequest = null;
+ resetCurrentRequest();
HttpResponse filteredResponse = (HttpResponse) currentFilters.proxyToClientResponse(httpResponse);
if (filteredResponse == null) {
@@ -1399,7 +1403,7 @@ protected void setMitming(boolean isMitming) {
/* *************************************************************************
* Activity Tracking/Statistics
- *
+ *
* We track statistics on bytes, requests and responses by adding handlers
* at the appropriate parts of the pipeline (see initChannelPipeline()).
**************************************************************************/
@@ -1505,7 +1509,7 @@ private FlowContext flowContext() {
public HAProxyMessage getHaProxyMessage() {
return haProxyMessage;
}
-
+
public ClientDetails getClientDetails() {
return clientDetails;
}
diff --git a/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java b/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java
index 1a1832ff..af78c8ca 100644
--- a/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java
+++ b/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java
@@ -95,7 +95,7 @@
* ProxyConnections are reused fairly liberally, and can go from disconnected to
* connected, back to disconnected and so on.
*
- *
+ *
*
* Connecting a {@link ProxyToServerConnection} can involve more than just
* connecting the underlying {@link Channel}. In particular, the connection may
@@ -178,10 +178,10 @@ public class ProxyToServerConnection extends ProxyConnection {
private final GlobalTrafficShapingHandler trafficHandler;
/**
- * Minimum size of the adaptive recv buffer when throttling is enabled.
+ * Minimum size of the adaptive recv buffer when throttling is enabled.
*/
private static final int MINIMUM_RECV_BUFFER_SIZE_BYTES = 64;
-
+
/**
* Create a new ProxyToServerConnection.
*/
@@ -304,12 +304,12 @@ protected void readRaw(ByteBuf buf) {
* doesn't know that any given response is to a HEAD request, so it needs to
* be told that there's no content so that it doesn't hang waiting for it.
*
- *
+ *
*
* See the documentation for {@link HttpResponseDecoder} for information
* about why HEAD requests need special handling.
*
- *
+ *
*
* Thanks to nataliakoval for
* pointing out that with connections being reused as they are, this needs
@@ -608,7 +608,7 @@ private void initializeConnectionFlow() {
if (hasUpstreamChainedProxy() && (chainedProxyType == ChainedProxyType.HTTP)) {
connectionFlow.then(serverConnection.HTTPCONNECTWithChainedProxy);
}
-
+
MitmManager mitmManager = proxyServer.getMitmManager();
boolean isMitmEnabled = currentFilters.proxyToServerAllowMitm() && mitmManager != null;
@@ -638,7 +638,7 @@ private void initializeConnectionFlow() {
}
}
}
-
+
private void addFirstOrReplaceHandler(String name, ChannelHandler handler) {
if (channel.pipeline().context(name) != null) {
channel.pipeline().replace(name, name, handler);
@@ -647,7 +647,7 @@ private void addFirstOrReplaceHandler(String name, ChannelHandler handler) {
channel.pipeline().addFirst(name, handler);
}
}
-
+
private void removeHandlerIfPresent(String name) {
removeHandlerIfPresent(channel.pipeline(), name);
}
@@ -753,7 +753,7 @@ void read(ConnectionFlow flow, Object msg) {
}
}
};
-
+
/**
* Establishes a SOCKS4 connection.
*/
@@ -768,7 +768,7 @@ protected Future> execute() {
} catch (UnknownHostException e) {
return channel.newFailedFuture(e);
}
-
+
DefaultSocks4CommandRequest connectRequest = new DefaultSocks4CommandRequest(
Socks4CommandType.CONNECT, destinationAddress.getHostString(), destinationAddress.getPort());
@@ -789,13 +789,13 @@ void read(ConnectionFlow flow, Object msg) {
}
flow.fail();
}
-
+
@Override
void onSuccess(ConnectionFlow flow) {
// Do not advance the flow until the SOCKS response has been parsed
}
};
-
+
/**
* Initiates a SOCKS5 connection.
*/
@@ -850,7 +850,7 @@ void onSuccess(ConnectionFlow flow) {
// Do not advance the flow until the SOCKS response has been parsed
}
};
-
+
/**
* Sends SOCKS5 password credentials after {@link #SOCKS5InitialRequest} has completed.
*/
@@ -883,7 +883,7 @@ void onSuccess(ConnectionFlow flow) {
// Do not advance the flow until the SOCKS response has been parsed
}
};
-
+
/**
* Establishes a SOCKS5 connection after {@link #SOCKS5InitialRequest} and
* (optionally) {@link #SOCKS5SendPasswordCredentials} have completed.
@@ -924,7 +924,7 @@ void onSuccess(ConnectionFlow flow) {
*
* Encrypts the client channel based on our server {@link SSLSession}.
*
- *
+ *
*
* This does not wait for the handshake to finish so that we can go on and
* respond to the CONNECT request.
@@ -1007,6 +1007,8 @@ protected boolean connectionFailed(Throwable cause)
return true;
}
+ resetInitialRequest();
+
// no chained proxy fallback or other retry mechanism available
return false;
}
@@ -1029,7 +1031,7 @@ private void resetConnectionForRetry() throws UnknownHostException {
/**
* Set up our connection parameters based on server address and chained
* proxies.
- *
+ *
* @throws UnknownHostException when unable to resolve the hostname to an IP address
*/
private void setupConnectionParameters() throws UnknownHostException {
@@ -1081,11 +1083,11 @@ private void setupConnectionParameters() throws UnknownHostException {
/**
* Initialize our {@link ChannelPipeline} to connect the upstream server.
* LittleProxy acts as a client here.
- *
+ *
* A {@link ChannelPipeline} invokes the read (Inbound) handlers in
* ascending ordering of the list and then the write (Outbound) handlers in
* descending ordering.
- *
+ *
* Regarding the Javadoc of {@link HttpObjectAggregator} it's needed to have
* the {@link HttpResponseEncoder} or {@link HttpRequestEncoder} before the
* {@link HttpObjectAggregator} in the {@link ChannelPipeline}.
@@ -1132,7 +1134,7 @@ private void initChannelPipeline(ChannelPipeline pipeline, HttpRequest httpReque
* Do all the stuff that needs to be done after our {@link ConnectionFlow}
* has succeeded.
*
- *
+ *
* @param shouldForwardInitialRequest
* whether or not we should forward the initial HttpRequest to
* the server after the connection has been established.
@@ -1160,6 +1162,10 @@ void connectionSucceeded(boolean shouldForwardInitialRequest) {
// we're now done with the initialRequest: it's either been forwarded to the upstream server (HTTP requests), or
// completely dropped (HTTPS CONNECTs). if the initialRequest is reference counted (typically because the HttpObjectAggregator is in
// the pipeline to generate FullHttpRequests), we need to manually release it to avoid a memory leak.
+ resetInitialRequest();
+ }
+
+ private void resetInitialRequest() {
if (initialRequest instanceof ReferenceCounted) {
((ReferenceCounted)initialRequest).release();
}
@@ -1167,7 +1173,7 @@ void connectionSucceeded(boolean shouldForwardInitialRequest) {
/**
* Build an {@link InetSocketAddress} for the given hostAndPort.
- *
+ *
* @param hostAndPort String representation of the host and port
* @param proxyServer the current {@link DefaultHttpProxyServer}
* @return a resolved InetSocketAddress for the specified hostAndPort
@@ -1215,7 +1221,7 @@ void switchToWebSocketProtocol() {
/* *************************************************************************
* Activity Tracking/Statistics
- *
+ *
* We track statistics on bytes, requests and responses by adding handlers
* at the appropriate parts of the pipeline (see initChannelPipeline()).
**************************************************************************/
From 7a1609c521a22acab2421fd0de6347a676fba827 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Tue, 9 Aug 2022 08:54:37 +0300
Subject: [PATCH 118/973] reproduce PR #383
Re-do the original PR https://github.com/adamfisk/LittleProxy/pull/383
this should fix https://github.com/adamfisk/LittleProxy/issues/359
---
.../org/littleshoot/proxy/impl/ClientToProxyConnection.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java b/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
index d89a6423..02201ed8 100644
--- a/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
+++ b/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
@@ -1344,13 +1344,13 @@ private boolean respondWithShortCircuitResponse(HttpResponse httpResponse) {
// restore the keep alive status, if it was overwritten when modifying headers for proxying
HttpUtil.setKeepAlive(httpResponse, isKeepAlive);
- write(httpResponse);
+ write(filteredResponse);
- if (ProxyUtils.isLastChunk(httpResponse)) {
+ if (ProxyUtils.isLastChunk(filteredResponse)) {
writeEmptyBuffer();
}
- if (!HttpUtil.isKeepAlive(httpResponse)) {
+ if (!HttpUtil.isKeepAlive(filteredResponse)) {
disconnect();
return false;
}
From e8ffa0e614a9b72cb872d9f01ad860273d737e6c Mon Sep 17 00:00:00 2001
From: Michel Belleau
Date: Wed, 10 Aug 2022 18:02:04 -0400
Subject: [PATCH 119/973] HTTP CONNECT can't be Keep-Alive
It is technically wrong to expect an HTTP connection that uses the CONNECT verb and becomes connected to ever be reused via Keep Alive.
Once the HTTP CONNECT is successful, the client has no way to give back to the proxy another request: it is by then connected to the remote end (or a MITM'ed flavor of it) and upon the remote end disconnection, the HTTP connection has to be disconnected as there is no other signal that can be given from the Proxy back to the Client to signify the remote end has disconnected and control is now back to the Proxy.
---
.../java/org/littleshoot/proxy/impl/ClientToProxyConnection.java | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java b/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
index 02201ed8..863cbcbe 100644
--- a/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
+++ b/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
@@ -536,7 +536,6 @@ protected Future> execute() {
LOG.debug("Responding with CONNECT successful");
HttpResponse response = ProxyUtils.createFullHttpResponse(HttpVersion.HTTP_1_1,
CONNECTION_ESTABLISHED);
- response.headers().set(HttpHeaderNames.CONNECTION, HttpHeaderValues.KEEP_ALIVE);
ProxyUtils.addVia(response, proxyServer.getProxyAlias());
return writeToChannel(response);
}
From 512a1fdcdfce470049032ce1a11ba98b4671007f Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Sat, 13 Aug 2022 12:24:38 +0300
Subject: [PATCH 120/973] release LittleProxy 2.0.11
---
README.md | 4 ++--
RELEASE_NOTES.md | 5 +++++
pom.xml | 2 +-
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 2f6c9d0a..aaeb0984 100644
--- a/README.md
+++ b/README.md
@@ -19,13 +19,13 @@ You can embed LittleProxy in your own projects through Maven with the following:
xyz.rogfamlittleproxy
- 2.0.10
+ 2.0.11
```
Or with Gradle like this
-`compile "xyz.rogfam:littleproxy:2.0.10"`
+`compile "xyz.rogfam:littleproxy:2.0.11"`
Once you've included LittleProxy, you can start the server with the following:
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 2979126a..07bce181 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -1,5 +1,10 @@
# Release Notes
+- 2.0.11
+ - #131 fix memory leak: release byte buffer when closing request - see PR #141
+ - #142 fix some "modify response" problem, see https://github.com/adamfisk/LittleProxy/issues/359
+ - #144 HTTP CONNECT can't be Keep-Alive - thanks Michel Belleau for PR #144
+
- 2.0.10
- #135 Bump netty.version from 4.1.77.Final to 4.1.79.Final
- #132 Bump selenium-java from 4.1.4 to 4.3.0
diff --git a/pom.xml b/pom.xml
index db6bd8a6..18d1331a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
xyz.rogfamlittleproxyjar
- 2.0.11-SNAPSHOT
+ 2.0.11LittleProxy
LittleProxy is a high performance HTTP proxy written in Java and using the Netty networking framework.
From c4a0d75fa3048efe5024516dd5bb89b274ce2b08 Mon Sep 17 00:00:00 2001
From: krlvm <51774833+krlvm@users.noreply.github.com>
Date: Sat, 13 Aug 2022 14:13:16 +0400
Subject: [PATCH 121/973] Restore Keep-Alive value when filtering short-circuit
response
---
.../proxy/impl/ClientToProxyConnection.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java b/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
index 863cbcbe..19f1a953 100644
--- a/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
+++ b/src/main/java/org/littleshoot/proxy/impl/ClientToProxyConnection.java
@@ -1324,24 +1324,24 @@ private boolean respondWithShortCircuitResponse(HttpResponse httpResponse) {
// we are sending a response to the client, so we are done handling this request
resetCurrentRequest();
+ // allow short-circuit messages to close the connection. normally the Connection header would be stripped when modifying
+ // the message for proxying, so save the keep-alive status before the modifications are made.
+ boolean isKeepAlive = HttpUtil.isKeepAlive(httpResponse);
+
HttpResponse filteredResponse = (HttpResponse) currentFilters.proxyToClientResponse(httpResponse);
if (filteredResponse == null) {
disconnect();
return false;
}
- // allow short-circuit messages to close the connection. normally the Connection header would be stripped when modifying
- // the message for proxying, so save the keep-alive status before the modifications are made.
- boolean isKeepAlive = HttpUtil.isKeepAlive(httpResponse);
-
// if the response is not a Bad Gateway or Gateway Timeout, modify the headers "as if" the short-circuit response were proxied
- int statusCode = httpResponse.status().code();
+ int statusCode = filteredResponse.status().code();
if (statusCode != HttpResponseStatus.BAD_GATEWAY.code() && statusCode != HttpResponseStatus.GATEWAY_TIMEOUT.code()) {
- modifyResponseHeadersToReflectProxying(httpResponse);
+ modifyResponseHeadersToReflectProxying(filteredResponse);
}
// restore the keep alive status, if it was overwritten when modifying headers for proxying
- HttpUtil.setKeepAlive(httpResponse, isKeepAlive);
+ HttpUtil.setKeepAlive(filteredResponse, isKeepAlive);
write(filteredResponse);
From b826633c5fd4e1343da1e7bb900b78566d4d4f6a Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 15 Aug 2022 01:05:43 +0000
Subject: [PATCH 122/973] Bump maven-project-info-reports-plugin from 3.4.0 to
3.4.1
Bumps [maven-project-info-reports-plugin](https://github.com/apache/maven-project-info-reports-plugin) from 3.4.0 to 3.4.1.
- [Release notes](https://github.com/apache/maven-project-info-reports-plugin/releases)
- [Commits](https://github.com/apache/maven-project-info-reports-plugin/compare/maven-project-info-reports-plugin-3.4.0...maven-project-info-reports-plugin-3.4.1)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-project-info-reports-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 18d1331a..f6c1073e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -629,7 +629,7 @@
org.apache.maven.pluginsmaven-project-info-reports-plugin
- 3.4.0
+ 3.4.1
From 57ea43b6c74eaf1280fee5f65163c832407b9676 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 15 Aug 2022 01:05:32 +0000
Subject: [PATCH 123/973] Bump maven-javadoc-plugin from 3.4.0 to 3.4.1
Bumps [maven-javadoc-plugin](https://github.com/apache/maven-javadoc-plugin) from 3.4.0 to 3.4.1.
- [Release notes](https://github.com/apache/maven-javadoc-plugin/releases)
- [Commits](https://github.com/apache/maven-javadoc-plugin/compare/maven-javadoc-plugin-3.4.0...maven-javadoc-plugin-3.4.1)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-javadoc-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index f6c1073e..8784cb20 100644
--- a/pom.xml
+++ b/pom.xml
@@ -488,7 +488,7 @@
org.apache.maven.pluginsmaven-javadoc-plugin
- 3.4.0
+ 3.4.1all,-missingprivate
From 5d868576bf6795bac9181e7f7cd6c0b31b31e2e8 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 15 Aug 2022 01:05:39 +0000
Subject: [PATCH 124/973] Bump mockito-core from 4.6.1 to 4.7.0
Bumps [mockito-core](https://github.com/mockito/mockito) from 4.6.1 to 4.7.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.6.1...v4.7.0)
---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 8784cb20..7f626dd3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -202,7 +202,7 @@
org.mockitomockito-core
- 4.6.1
+ 4.7.0test
From 2826990b09ac120260b6ee1047880a6601ef9764 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 15 Aug 2022 01:05:48 +0000
Subject: [PATCH 125/973] Bump selenium-java from 4.3.0 to 4.4.0
Bumps [selenium-java](https://github.com/SeleniumHQ/selenium) from 4.3.0 to 4.4.0.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Commits](https://github.com/SeleniumHQ/selenium/compare/selenium-4.3.0...selenium-4.4.0)
---
updated-dependencies:
- dependency-name: org.seleniumhq.selenium:selenium-java
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 7f626dd3..48347616 100644
--- a/pom.xml
+++ b/pom.xml
@@ -222,7 +222,7 @@
org.seleniumhq.seleniumselenium-java
- 4.3.0
+ 4.4.0test
From 1fd8d07704c88ba499dc1d4d2967138a1f7cbb8f Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 22 Aug 2022 01:02:32 +0000
Subject: [PATCH 126/973] Bump maven-jxr-plugin from 3.2.0 to 3.3.0
Bumps [maven-jxr-plugin](https://github.com/apache/maven-jxr) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/apache/maven-jxr/releases)
- [Commits](https://github.com/apache/maven-jxr/compare/jxr-3.2.0...jxr-3.3.0)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-jxr-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 48347616..1cc08ab1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -683,7 +683,7 @@
org.apache.maven.pluginsmaven-jxr-plugin
- 3.2.0
+ 3.3.0
From 3e83441dc2515a093df6f330b7a6603a99ee2ec1 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 22 Aug 2022 01:02:43 +0000
Subject: [PATCH 127/973] Bump slf4j.version from 1.7.36 to 2.0.0
Bumps `slf4j.version` from 1.7.36 to 2.0.0.
Updates `slf4j-reload4j` from 1.7.36 to 2.0.0
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_1.7.36...v_2.0.0)
Updates `slf4j-api` from 1.7.36 to 2.0.0
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_1.7.36...v_2.0.0)
---
updated-dependencies:
- dependency-name: org.slf4j:slf4j-reload4j
dependency-type: direct:production
update-type: version-update:semver-major
- dependency-name: org.slf4j:slf4j-api
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 1cc08ab1..f0dac694 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,7 +15,7 @@
UTF-8github4.1.79.Final
- 1.7.36
+ 2.0.01.8
From dcb9e6d56cab1d3bb2cc4ac992cb86e38e6f572d Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 1 Aug 2022 00:52:27 +0000
Subject: [PATCH 128/973] Bump maven-resources-plugin from 3.2.0 to 3.3.0
Bumps [maven-resources-plugin](https://github.com/apache/maven-resources-plugin) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/apache/maven-resources-plugin/releases)
- [Commits](https://github.com/apache/maven-resources-plugin/compare/maven-resources-plugin-3.2.0...maven-resources-plugin-3.3.0)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-resources-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index f0dac694..f31635af 100644
--- a/pom.xml
+++ b/pom.xml
@@ -476,7 +476,7 @@
org.apache.maven.pluginsmaven-resources-plugin
- 3.2.0
+ 3.3.0
From 5d99a7de2d9f13bc505288e0a9ffb85d1bd78b8a Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 29 Aug 2022 01:20:32 +0000
Subject: [PATCH 129/973] Bump maven-pmd-plugin from 3.17.0 to 3.18.0
Bumps [maven-pmd-plugin](https://github.com/apache/maven-pmd-plugin) from 3.17.0 to 3.18.0.
- [Release notes](https://github.com/apache/maven-pmd-plugin/releases)
- [Commits](https://github.com/apache/maven-pmd-plugin/compare/maven-pmd-plugin-3.17.0...maven-pmd-plugin-3.18.0)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-pmd-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index f31635af..312e2c6e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -689,7 +689,7 @@
org.apache.maven.pluginsmaven-pmd-plugin
- 3.17.0
+ 3.18.0trueutf-8
From 70b078be60f9a710643b1ac76260f6e55760f4f8 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 29 Aug 2022 01:20:28 +0000
Subject: [PATCH 130/973] Bump maven-checkstyle-plugin from 3.1.2 to 3.2.0
Bumps [maven-checkstyle-plugin](https://github.com/apache/maven-checkstyle-plugin) from 3.1.2 to 3.2.0.
- [Release notes](https://github.com/apache/maven-checkstyle-plugin/releases)
- [Commits](https://github.com/apache/maven-checkstyle-plugin/compare/maven-checkstyle-plugin-3.1.2...maven-checkstyle-plugin-3.2.0)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-checkstyle-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 312e2c6e..f7a8ee2e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -649,7 +649,7 @@
org.apache.maven.pluginsmaven-checkstyle-plugin
- 3.1.2
+ 3.2.0
From 1a4be7b11b154d49d7e704d35af2cba7009be035 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 29 Aug 2022 01:20:24 +0000
Subject: [PATCH 131/973] Bump mockserver-netty from 5.13.2 to 5.14.0
Bumps [mockserver-netty](https://github.com/jamesdbloom/mockservice) from 5.13.2 to 5.14.0.
- [Release notes](https://github.com/jamesdbloom/mockservice/releases)
- [Changelog](https://github.com/mock-server/mockserver/blob/master/changelog.md)
- [Commits](https://github.com/jamesdbloom/mockservice/compare/mockserver-5.13.2...mockserver-5.14.0)
---
updated-dependencies:
- dependency-name: org.mock-server:mockserver-netty
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index f7a8ee2e..2db9bd0b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -209,7 +209,7 @@
org.mock-servermockserver-netty
- 5.13.2
+ 5.14.0test
From b94764e23c7077ce0a50d9365e82551cef51b0c4 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 29 Aug 2022 01:19:24 +0000
Subject: [PATCH 132/973] Bump netty.version from 4.1.79.Final to 4.1.80.Final
Bumps `netty.version` from 4.1.79.Final to 4.1.80.Final.
Updates `netty-all` from 4.1.79.Final to 4.1.80.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.79.Final...netty-4.1.80.Final)
Updates `netty-example` from 4.1.79.Final to 4.1.80.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.79.Final...netty-4.1.80.Final)
Updates `netty-buffer` from 4.1.79.Final to 4.1.80.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.79.Final...netty-4.1.80.Final)
Updates `netty-codec` from 4.1.79.Final to 4.1.80.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.79.Final...netty-4.1.80.Final)
Updates `netty-codec-haproxy` from 4.1.79.Final to 4.1.80.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.79.Final...netty-4.1.80.Final)
Updates `netty-codec-http` from 4.1.79.Final to 4.1.80.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.79.Final...netty-4.1.80.Final)
Updates `netty-codec-socks` from 4.1.79.Final to 4.1.80.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.79.Final...netty-4.1.80.Final)
Updates `netty-common` from 4.1.79.Final to 4.1.80.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.79.Final...netty-4.1.80.Final)
Updates `netty-handler` from 4.1.79.Final to 4.1.80.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.79.Final...netty-4.1.80.Final)
Updates `netty-handler-proxy` from 4.1.79.Final to 4.1.80.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.79.Final...netty-4.1.80.Final)
Updates `netty-transport` from 4.1.79.Final to 4.1.80.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.79.Final...netty-4.1.80.Final)
Updates `netty-transport-rxtx` from 4.1.79.Final to 4.1.80.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.79.Final...netty-4.1.80.Final)
Updates `netty-transport-sctp` from 4.1.79.Final to 4.1.80.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.79.Final...netty-4.1.80.Final)
Updates `netty-transport-udp` from 4.1.79.Final to 4.1.80.Final
---
updated-dependencies:
- dependency-name: io.netty:netty-all
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-example
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-buffer
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-haproxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-http
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-socks
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-common
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler-proxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-rxtx
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-sctp
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-udp
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 2db9bd0b..d6c865db 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
UTF-8UTF-8github
- 4.1.79.Final
+ 4.1.80.Final2.0.01.8
From dd566a7ffefee45b8ac0f14e85fbb5905dd11aef Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 12 Sep 2022 01:08:54 +0000
Subject: [PATCH 133/973] Bump maven-pmd-plugin from 3.18.0 to 3.19.0
Bumps [maven-pmd-plugin](https://github.com/apache/maven-pmd-plugin) from 3.18.0 to 3.19.0.
- [Release notes](https://github.com/apache/maven-pmd-plugin/releases)
- [Commits](https://github.com/apache/maven-pmd-plugin/compare/maven-pmd-plugin-3.18.0...maven-pmd-plugin-3.19.0)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-pmd-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index d6c865db..ee2cf2dc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -689,7 +689,7 @@
org.apache.maven.pluginsmaven-pmd-plugin
- 3.18.0
+ 3.19.0trueutf-8
From d0d1419344cc87a2f0074b1cb3d319ebba33520b Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 12 Sep 2022 01:07:41 +0000
Subject: [PATCH 134/973] Bump netty.version from 4.1.80.Final to 4.1.81.Final
Bumps `netty.version` from 4.1.80.Final to 4.1.81.Final.
Updates `netty-all` from 4.1.80.Final to 4.1.81.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.80.Final...netty-4.1.81.Final)
Updates `netty-example` from 4.1.80.Final to 4.1.81.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.80.Final...netty-4.1.81.Final)
Updates `netty-buffer` from 4.1.80.Final to 4.1.81.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.80.Final...netty-4.1.81.Final)
Updates `netty-codec` from 4.1.80.Final to 4.1.81.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.80.Final...netty-4.1.81.Final)
Updates `netty-codec-haproxy` from 4.1.80.Final to 4.1.81.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.80.Final...netty-4.1.81.Final)
Updates `netty-codec-http` from 4.1.80.Final to 4.1.81.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.80.Final...netty-4.1.81.Final)
Updates `netty-codec-socks` from 4.1.80.Final to 4.1.81.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.80.Final...netty-4.1.81.Final)
Updates `netty-common` from 4.1.80.Final to 4.1.81.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.80.Final...netty-4.1.81.Final)
Updates `netty-handler` from 4.1.80.Final to 4.1.81.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.80.Final...netty-4.1.81.Final)
Updates `netty-handler-proxy` from 4.1.80.Final to 4.1.81.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.80.Final...netty-4.1.81.Final)
Updates `netty-transport` from 4.1.80.Final to 4.1.81.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.80.Final...netty-4.1.81.Final)
Updates `netty-transport-rxtx` from 4.1.80.Final to 4.1.81.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.80.Final...netty-4.1.81.Final)
Updates `netty-transport-sctp` from 4.1.80.Final to 4.1.81.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.80.Final...netty-4.1.81.Final)
Updates `netty-transport-udp` from 4.1.80.Final to 4.1.81.Final
---
updated-dependencies:
- dependency-name: io.netty:netty-all
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-example
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-buffer
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-haproxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-http
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-socks
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-common
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler-proxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-rxtx
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-sctp
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-udp
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ee2cf2dc..43f02fa6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
UTF-8UTF-8github
- 4.1.80.Final
+ 4.1.81.Final2.0.01.8
From 3a290a31b35f4bd715710e76bb6c174587d28604 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 12 Sep 2022 01:06:39 +0000
Subject: [PATCH 135/973] Bump mockito-core from 4.7.0 to 4.8.0
Bumps [mockito-core](https://github.com/mockito/mockito) from 4.7.0 to 4.8.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.7.0...v4.8.0)
---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 43f02fa6..3bcebd92 100644
--- a/pom.xml
+++ b/pom.xml
@@ -202,7 +202,7 @@
org.mockitomockito-core
- 4.7.0
+ 4.8.0test
From 5394448213e908a31f18a2fbc46dddc3e173facd Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 12 Sep 2022 01:08:03 +0000
Subject: [PATCH 136/973] Bump versions-maven-plugin from 2.11.0 to 2.12.0
Bumps [versions-maven-plugin](https://github.com/mojohaus/versions-maven-plugin) from 2.11.0 to 2.12.0.
- [Release notes](https://github.com/mojohaus/versions-maven-plugin/releases)
- [Changelog](https://github.com/mojohaus/versions-maven-plugin/blob/master/ReleaseNotes.md)
- [Commits](https://github.com/mojohaus/versions-maven-plugin/compare/versions-maven-plugin-2.11.0...versions-maven-plugin-2.12.0)
---
updated-dependencies:
- dependency-name: org.codehaus.mojo:versions-maven-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 3bcebd92..26559fa2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -701,7 +701,7 @@
org.codehaus.mojoversions-maven-plugin
- 2.11.0
+ 2.12.0
From aaa73b15d43051582c08833d0ba8a91d41e41a01 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 19 Sep 2022 01:24:37 +0000
Subject: [PATCH 137/973] Bump log4j-core from 2.18.0 to 2.19.0
Bumps log4j-core from 2.18.0 to 2.19.0.
---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-core
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 26559fa2..f6e0e349 100644
--- a/pom.xml
+++ b/pom.xml
@@ -235,7 +235,7 @@
org.apache.logging.log4jlog4j-core
- 2.18.0
+ 2.19.0true
From 516eff23e32acb191dbd84c7295c049341e40d50 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 19 Sep 2022 01:22:30 +0000
Subject: [PATCH 138/973] Bump slf4j.version from 2.0.0 to 2.0.1
Bumps `slf4j.version` from 2.0.0 to 2.0.1.
Updates `slf4j-reload4j` from 2.0.0 to 2.0.1
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_2.0.0...v_2.0.1)
Updates `slf4j-api` from 2.0.0 to 2.0.1
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_2.0.0...v_2.0.1)
---
updated-dependencies:
- dependency-name: org.slf4j:slf4j-reload4j
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: org.slf4j:slf4j-api
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index f6e0e349..317a5a37 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,7 +15,7 @@
UTF-8github4.1.81.Final
- 2.0.0
+ 2.0.11.8
From bdb773f9144bdb616a40b85d0fbda374adc4190d Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 19 Sep 2022 04:19:57 +0000
Subject: [PATCH 139/973] Bump maven-shade-plugin from 3.2.4 to 3.4.0
Bumps [maven-shade-plugin](https://github.com/apache/maven-shade-plugin) from 3.2.4 to 3.4.0.
- [Release notes](https://github.com/apache/maven-shade-plugin/releases)
- [Commits](https://github.com/apache/maven-shade-plugin/compare/maven-shade-plugin-3.2.4...maven-shade-plugin-3.4.0)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-shade-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 317a5a37..1773c745 100644
--- a/pom.xml
+++ b/pom.xml
@@ -542,7 +542,7 @@
org.apache.maven.pluginsmaven-shade-plugin
- 3.2.4
+ 3.4.0package
From b52f0fd5d58f5f9a13f35e4a7e5fe217f2e89590 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 19 Sep 2022 01:21:34 +0000
Subject: [PATCH 140/973] Bump maven-jar-plugin from 3.2.2 to 3.3.0
Bumps [maven-jar-plugin](https://github.com/apache/maven-jar-plugin) from 3.2.2 to 3.3.0.
- [Release notes](https://github.com/apache/maven-jar-plugin/releases)
- [Commits](https://github.com/apache/maven-jar-plugin/compare/maven-jar-plugin-3.2.2...maven-jar-plugin-3.3.0)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-jar-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 1773c745..49c95d06 100644
--- a/pom.xml
+++ b/pom.xml
@@ -470,7 +470,7 @@
org.apache.maven.pluginsmaven-jar-plugin
- 3.2.2
+ 3.3.0
From 192b7564f02d9524e7eedec4b2d2106c75936bfa Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 19 Sep 2022 04:21:39 +0000
Subject: [PATCH 141/973] Bump netty.version from 4.1.81.Final to 4.1.82.Final
Bumps `netty.version` from 4.1.81.Final to 4.1.82.Final.
Updates `netty-all` from 4.1.81.Final to 4.1.82.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.81.Final...netty-4.1.82.Final)
Updates `netty-example` from 4.1.81.Final to 4.1.82.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.81.Final...netty-4.1.82.Final)
Updates `netty-buffer` from 4.1.81.Final to 4.1.82.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.81.Final...netty-4.1.82.Final)
Updates `netty-codec` from 4.1.81.Final to 4.1.82.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.81.Final...netty-4.1.82.Final)
Updates `netty-codec-haproxy` from 4.1.81.Final to 4.1.82.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.81.Final...netty-4.1.82.Final)
Updates `netty-codec-http` from 4.1.81.Final to 4.1.82.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.81.Final...netty-4.1.82.Final)
Updates `netty-codec-socks` from 4.1.81.Final to 4.1.82.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.81.Final...netty-4.1.82.Final)
Updates `netty-common` from 4.1.81.Final to 4.1.82.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.81.Final...netty-4.1.82.Final)
Updates `netty-handler` from 4.1.81.Final to 4.1.82.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.81.Final...netty-4.1.82.Final)
Updates `netty-handler-proxy` from 4.1.81.Final to 4.1.82.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.81.Final...netty-4.1.82.Final)
Updates `netty-transport` from 4.1.81.Final to 4.1.82.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.81.Final...netty-4.1.82.Final)
Updates `netty-transport-rxtx` from 4.1.81.Final to 4.1.82.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.81.Final...netty-4.1.82.Final)
Updates `netty-transport-sctp` from 4.1.81.Final to 4.1.82.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.81.Final...netty-4.1.82.Final)
Updates `netty-transport-udp` from 4.1.81.Final to 4.1.82.Final
---
updated-dependencies:
- dependency-name: io.netty:netty-all
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-example
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-buffer
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-haproxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-http
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-socks
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-common
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler-proxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-rxtx
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-sctp
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-udp
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 49c95d06..d36c02fb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
UTF-8UTF-8github
- 4.1.81.Final
+ 4.1.82.Final2.0.11.8
From e3f9a2256bc5421ae42c9ad74f5395cf5719da66 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Fri, 23 Sep 2022 20:42:09 +0300
Subject: [PATCH 142/973] release LittleProxy 2.0.12
---
README.md | 4 ++--
RELEASE_NOTES.md | 16 +++++++++++-----
pom.xml | 2 +-
3 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index aaeb0984..18756260 100644
--- a/README.md
+++ b/README.md
@@ -19,13 +19,13 @@ You can embed LittleProxy in your own projects through Maven with the following:
xyz.rogfamlittleproxy
- 2.0.11
+ 2.0.12
```
Or with Gradle like this
-`compile "xyz.rogfam:littleproxy:2.0.11"`
+`compile "xyz.rogfam:littleproxy:2.0.12"`
Once you've included LittleProxy, you can start the server with the following:
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 07bce181..875ad789 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -1,19 +1,25 @@
# Release Notes
-- 2.0.11
+- 2.0.12 (23.09.2022)
+ - #145 Restore Keep-Alive value when filtering short-circuit response -- thanks to krlvm for PR
+ - Bump netty from 4.1.79.Final to 4.1.82.Final
+ - Bump slf4j from 1.7.36 to 2.0.1
+ - Bump log4j-core from 2.18.0 to 2.19.0
+
+- 2.0.11 (13.08.2022)
- #131 fix memory leak: release byte buffer when closing request - see PR #141
- #142 fix some "modify response" problem, see https://github.com/adamfisk/LittleProxy/issues/359
- #144 HTTP CONNECT can't be Keep-Alive - thanks Michel Belleau for PR #144
-- 2.0.10
+- 2.0.10 (20.07.2022)
- #135 Bump netty.version from 4.1.77.Final to 4.1.79.Final
- #132 Bump selenium-java from 4.1.4 to 4.3.0
- #118 Bump dnsjava from 3.5.0 to 3.5.1
-- 2.0.9
+- 2.0.9 (10.05.2022)
- #115 reverted to maven-shade-plugin 3.2.4 (because 3.3.0 generated artifact without compile/runtime dependencies)
-- 2.0.8
+- 2.0.8 (06.05.2022)
- #26 fixed TLS 1.3 handshake bug -- thanks Dan Powell for PR https://github.com/LittleProxy/LittleProxy/pull/26
- Bumped log4j-core from 2.17.0 to 2.17.2
- Bumped netty from 4.1.71 to 4.1.76
@@ -25,7 +31,7 @@
- moved the project to https://github.com/LittleProxy/LittleProxy
- moved CI from Travis to https://github.com/LittleProxy/LittleProxy/actions
-- 2.0.7
+- 2.0.7 (21.12.2021)
- Bumped log4j-core from 2.16.0 to 2.17.0
- 2.0.6
diff --git a/pom.xml b/pom.xml
index d36c02fb..c90b9bed 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
xyz.rogfamlittleproxyjar
- 2.0.11
+ 2.0.12LittleProxy
LittleProxy is a high performance HTTP proxy written in Java and using the Netty networking framework.
From 6602961f77e290be3f2c960d0ca1b0d599d78078 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 26 Sep 2022 01:01:03 +0000
Subject: [PATCH 143/973] Bump slf4j.version from 2.0.1 to 2.0.2
Bumps `slf4j.version` from 2.0.1 to 2.0.2.
Updates `slf4j-reload4j` from 2.0.1 to 2.0.2
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_2.0.1...v_2.0.2)
Updates `slf4j-api` from 2.0.1 to 2.0.2
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_2.0.1...v_2.0.2)
---
updated-dependencies:
- dependency-name: org.slf4j:slf4j-reload4j
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: org.slf4j:slf4j-api
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index c90b9bed..0267e1ec 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,7 +15,7 @@
UTF-8github4.1.82.Final
- 2.0.1
+ 2.0.21.8
From acc19f7f3b4019a3785d383bc1aad6684e8d79ca Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 3 Oct 2022 01:06:15 +0000
Subject: [PATCH 144/973] Bump selenium-java from 4.4.0 to 4.5.0
Bumps [selenium-java](https://github.com/SeleniumHQ/selenium) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Commits](https://github.com/SeleniumHQ/selenium/compare/selenium-4.4.0...selenium-4.5.0)
---
updated-dependencies:
- dependency-name: org.seleniumhq.selenium:selenium-java
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 0267e1ec..f3a6f9d9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -222,7 +222,7 @@
org.seleniumhq.seleniumselenium-java
- 4.4.0
+ 4.5.0test
From 35853a75f4aa69f99ce688a8b10f4f2873ccabb2 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 3 Oct 2022 01:06:10 +0000
Subject: [PATCH 145/973] Bump slf4j.version from 2.0.2 to 2.0.3
Bumps `slf4j.version` from 2.0.2 to 2.0.3.
Updates `slf4j-reload4j` from 2.0.2 to 2.0.3
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_2.0.2...v_2.0.3)
Updates `slf4j-api` from 2.0.2 to 2.0.3
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_2.0.2...v_2.0.3)
---
updated-dependencies:
- dependency-name: org.slf4j:slf4j-reload4j
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: org.slf4j:slf4j-api
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index f3a6f9d9..b400d810 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,7 +15,7 @@
UTF-8github4.1.82.Final
- 2.0.2
+ 2.0.31.8
From 083d0094e37faa66b12d3b982c3b6bc18ab3a7b4 Mon Sep 17 00:00:00 2001
From: Mateusz Pietryga
Date: Tue, 4 Oct 2022 00:25:42 +0200
Subject: [PATCH 146/973] Do not package dependency-reduced-pom.xml into the
release artifact.
#170
---
pom.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/pom.xml b/pom.xml
index b400d810..bbf84dba 100644
--- a/pom.xml
+++ b/pom.xml
@@ -550,6 +550,7 @@
shade
+ falsetruelittleproxy-shade
From e091a894b096febd097f5688ab85cb964a4fb0ef Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Tue, 4 Oct 2022 08:37:24 +0300
Subject: [PATCH 147/973] release LittleProxy 2.0.13
---
README.md | 4 ++--
RELEASE_NOTES.md | 5 +++++
pom.xml | 2 +-
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 18756260..489412bc 100644
--- a/README.md
+++ b/README.md
@@ -19,13 +19,13 @@ You can embed LittleProxy in your own projects through Maven with the following:
xyz.rogfamlittleproxy
- 2.0.12
+ 2.0.13
```
Or with Gradle like this
-`compile "xyz.rogfam:littleproxy:2.0.12"`
+`implementation "xyz.rogfam:littleproxy:2.0.13"`
Once you've included LittleProxy, you can start the server with the following:
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 875ad789..b8f37d84 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -1,5 +1,10 @@
# Release Notes
+- 2.0.13 (04.10.2022)
+ - #170 restore transitive dependencies in generated pom -- thanks to Mateusz Pietryga for PR #171
+ - Bump slf4j from 2.0.1 to 2.0.3
+ - Bump selenium-java from 4.4.0 to 4.5.0
+
- 2.0.12 (23.09.2022)
- #145 Restore Keep-Alive value when filtering short-circuit response -- thanks to krlvm for PR
- Bump netty from 4.1.79.Final to 4.1.82.Final
diff --git a/pom.xml b/pom.xml
index bbf84dba..0742526f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
xyz.rogfamlittleproxyjar
- 2.0.12
+ 2.0.13LittleProxy
LittleProxy is a high performance HTTP proxy written in Java and using the Netty networking framework.
From bd8f36d6f725e1b2fc73f86bb8a07528ffd424fe Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Tue, 4 Oct 2022 08:58:53 +0300
Subject: [PATCH 148/973] working on LittleProxy 2.0.14
---
RELEASE_NOTES.md | 3 +++
pom.xml | 6 +++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index b8f37d84..ded82b2b 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -1,5 +1,8 @@
# Release Notes
+- 2.0.14
+ - Bump jackson-databind from 2.13.2.2 to 2.13.4
+
- 2.0.13 (04.10.2022)
- #170 restore transitive dependencies in generated pom -- thanks to Mateusz Pietryga for PR #171
- Bump slf4j from 2.0.1 to 2.0.3
diff --git a/pom.xml b/pom.xml
index 0742526f..d89617d7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
xyz.rogfamlittleproxyjar
- 2.0.13
+ 2.0.14-SNAPSHOTLittleProxy
LittleProxy is a high performance HTTP proxy written in Java and using the Netty networking framework.
@@ -195,7 +195,7 @@
org.eclipse.jettyjetty-server
- 9.4.46.v20220331
+ 9.4.49.v20220914test
@@ -405,7 +405,7 @@
com.fasterxml.jackson.corejackson-databind
- 2.13.2.2
+ 2.13.4bundle
From fd3955ec39fc2897a3fd671557d50ea2ac12208b Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 17 Oct 2022 01:07:06 +0000
Subject: [PATCH 149/973] Bump netty.version from 4.1.82.Final to 4.1.84.Final
Bumps `netty.version` from 4.1.82.Final to 4.1.84.Final.
Updates `netty-all` from 4.1.82.Final to 4.1.84.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.84.Final)
Updates `netty-example` from 4.1.82.Final to 4.1.84.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.84.Final)
Updates `netty-buffer` from 4.1.82.Final to 4.1.84.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.84.Final)
Updates `netty-codec` from 4.1.82.Final to 4.1.84.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.84.Final)
Updates `netty-codec-haproxy` from 4.1.82.Final to 4.1.84.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.84.Final)
Updates `netty-codec-http` from 4.1.82.Final to 4.1.84.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.84.Final)
Updates `netty-codec-socks` from 4.1.82.Final to 4.1.84.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.84.Final)
Updates `netty-common` from 4.1.82.Final to 4.1.84.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.84.Final)
Updates `netty-handler` from 4.1.82.Final to 4.1.84.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.84.Final)
Updates `netty-handler-proxy` from 4.1.82.Final to 4.1.84.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.84.Final)
Updates `netty-transport` from 4.1.82.Final to 4.1.84.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.84.Final)
Updates `netty-transport-rxtx` from 4.1.82.Final to 4.1.84.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.84.Final)
Updates `netty-transport-sctp` from 4.1.82.Final to 4.1.84.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.84.Final)
Updates `netty-transport-udp` from 4.1.82.Final to 4.1.84.Final
---
updated-dependencies:
- dependency-name: io.netty:netty-all
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-example
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-buffer
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-haproxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-http
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-socks
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-common
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler-proxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-rxtx
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-sctp
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-udp
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index d89617d7..e81fe70c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
UTF-8UTF-8github
- 4.1.82.Final
+ 4.1.84.Final2.0.31.8
From be00af61d19d49c0df0691ceedada029d4ebdc84 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 24 Oct 2022 01:10:13 +0000
Subject: [PATCH 150/973] Bump selenium-java from 4.5.0 to 4.5.2
Bumps [selenium-java](https://github.com/SeleniumHQ/selenium) from 4.5.0 to 4.5.2.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Commits](https://github.com/SeleniumHQ/selenium/commits)
---
updated-dependencies:
- dependency-name: org.seleniumhq.selenium:selenium-java
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index e81fe70c..c4e605d0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -222,7 +222,7 @@
org.seleniumhq.seleniumselenium-java
- 4.5.0
+ 4.5.2test
From de5f45ed06e78b01b56073e41591c344b8c4bd6c Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 24 Oct 2022 01:10:17 +0000
Subject: [PATCH 151/973] Bump versions-maven-plugin from 2.12.0 to 2.13.0
Bumps [versions-maven-plugin](https://github.com/mojohaus/versions-maven-plugin) from 2.12.0 to 2.13.0.
- [Release notes](https://github.com/mojohaus/versions-maven-plugin/releases)
- [Changelog](https://github.com/mojohaus/versions-maven-plugin/blob/master/ReleaseNotes.md)
- [Commits](https://github.com/mojohaus/versions-maven-plugin/compare/versions-maven-plugin-2.12.0...2.13.0)
---
updated-dependencies:
- dependency-name: org.codehaus.mojo:versions-maven-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index c4e605d0..e033eb53 100644
--- a/pom.xml
+++ b/pom.xml
@@ -702,7 +702,7 @@
org.codehaus.mojoversions-maven-plugin
- 2.12.0
+ 2.13.0
From 1e555cd242751500a065989d81968395cd4ca3f3 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 24 Oct 2022 01:10:24 +0000
Subject: [PATCH 152/973] Bump mockito-core from 4.8.0 to 4.8.1
Bumps [mockito-core](https://github.com/mockito/mockito) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.8.0...v4.8.1)
---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index e033eb53..147ceb77 100644
--- a/pom.xml
+++ b/pom.xml
@@ -202,7 +202,7 @@
org.mockitomockito-core
- 4.8.0
+ 4.8.1test
From b730955cfaa4b3d90049157cf4feec6d7c7d25cd Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 31 Oct 2022 00:29:37 +0000
Subject: [PATCH 153/973] Bump maven-shade-plugin from 3.4.0 to 3.4.1
Bumps [maven-shade-plugin](https://github.com/apache/maven-shade-plugin) from 3.4.0 to 3.4.1.
- [Release notes](https://github.com/apache/maven-shade-plugin/releases)
- [Commits](https://github.com/apache/maven-shade-plugin/compare/maven-shade-plugin-3.4.0...maven-shade-plugin-3.4.1)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-shade-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 147ceb77..843e9a87 100644
--- a/pom.xml
+++ b/pom.xml
@@ -542,7 +542,7 @@
org.apache.maven.pluginsmaven-shade-plugin
- 3.4.0
+ 3.4.1package
From a496d7f4b55aa6fa436e2f870949cd81b277a832 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 31 Oct 2022 00:29:22 +0000
Subject: [PATCH 154/973] Bump selenium-java from 4.5.2 to 4.5.3
Bumps [selenium-java](https://github.com/SeleniumHQ/selenium) from 4.5.2 to 4.5.3.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Commits](https://github.com/SeleniumHQ/selenium/commits)
---
updated-dependencies:
- dependency-name: org.seleniumhq.selenium:selenium-java
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 843e9a87..904e22e1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -222,7 +222,7 @@
org.seleniumhq.seleniumselenium-java
- 4.5.2
+ 4.5.3test
From 6974f20126ca6a4f571417fc60b4326e53409ee7 Mon Sep 17 00:00:00 2001
From: Mateusz Pietryga
Date: Tue, 1 Nov 2022 16:46:22 +0100
Subject: [PATCH 155/973] Revert "Bump netty.version from 4.1.82.Final to
4.1.84.Final"
This reverts commit fd3955ec39fc2897a3fd671557d50ea2ac12208b.
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 904e22e1..91fddaea 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
UTF-8UTF-8github
- 4.1.84.Final
+ 4.1.82.Final2.0.31.8
From ad4a44b36c292f5cc66ed108b4f6b910a3992a42 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 14 Nov 2022 00:08:33 +0000
Subject: [PATCH 156/973] Bump netty.version from 4.1.82.Final to 4.1.85.Final
Bumps `netty.version` from 4.1.82.Final to 4.1.85.Final.
Updates `netty-all` from 4.1.82.Final to 4.1.85.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.85.Final)
Updates `netty-example` from 4.1.82.Final to 4.1.85.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.85.Final)
Updates `netty-buffer` from 4.1.82.Final to 4.1.85.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.85.Final)
Updates `netty-codec` from 4.1.82.Final to 4.1.85.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.85.Final)
Updates `netty-codec-haproxy` from 4.1.82.Final to 4.1.85.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.85.Final)
Updates `netty-codec-http` from 4.1.82.Final to 4.1.85.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.85.Final)
Updates `netty-codec-socks` from 4.1.82.Final to 4.1.85.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.85.Final)
Updates `netty-common` from 4.1.82.Final to 4.1.85.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.85.Final)
Updates `netty-handler` from 4.1.82.Final to 4.1.85.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.85.Final)
Updates `netty-handler-proxy` from 4.1.82.Final to 4.1.85.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.85.Final)
Updates `netty-transport` from 4.1.82.Final to 4.1.85.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.85.Final)
Updates `netty-transport-rxtx` from 4.1.82.Final to 4.1.85.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.85.Final)
Updates `netty-transport-sctp` from 4.1.82.Final to 4.1.85.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.82.Final...netty-4.1.85.Final)
Updates `netty-transport-udp` from 4.1.82.Final to 4.1.85.Final
---
updated-dependencies:
- dependency-name: io.netty:netty-all
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-example
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-buffer
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-haproxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-http
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-socks
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-common
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler-proxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-rxtx
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-sctp
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-udp
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 91fddaea..a6348511 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
UTF-8UTF-8github
- 4.1.82.Final
+ 4.1.85.Final2.0.31.8
From b461c3a2bd87e533beff8438c66a25236310a509 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 7 Nov 2022 00:24:49 +0000
Subject: [PATCH 157/973] Bump selenium-java from 4.5.3 to 4.6.0
Bumps [selenium-java](https://github.com/SeleniumHQ/selenium) from 4.5.3 to 4.6.0.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Commits](https://github.com/SeleniumHQ/selenium/commits/selenium-4.6.0)
---
updated-dependencies:
- dependency-name: org.seleniumhq.selenium:selenium-java
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index a6348511..e5c3448c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -222,7 +222,7 @@
org.seleniumhq.seleniumselenium-java
- 4.5.3
+ 4.6.0test
From de8cee111a4a7d2050136a890af18f502d30f6b1 Mon Sep 17 00:00:00 2001
From: Valery Yatsynovich
Date: Wed, 16 Nov 2022 18:39:39 +0300
Subject: [PATCH 158/973] Make unit tests for header values parsing logic
atomic
---
.../proxy/impl/ProxyUtilsTest.java | 81 ++++++++++++-------
1 file changed, 52 insertions(+), 29 deletions(-)
diff --git a/src/test/java/org/littleshoot/proxy/impl/ProxyUtilsTest.java b/src/test/java/org/littleshoot/proxy/impl/ProxyUtilsTest.java
index bf7217ae..df33ada9 100644
--- a/src/test/java/org/littleshoot/proxy/impl/ProxyUtilsTest.java
+++ b/src/test/java/org/littleshoot/proxy/impl/ProxyUtilsTest.java
@@ -57,68 +57,91 @@ public void testAddNewViaHeader() {
}
@Test
- public void testCommaSeparatedHeaderValues() {
- DefaultHttpMessage message;
- List commaSeparatedHeaders;
-
- // test the empty headers case
- message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
- commaSeparatedHeaders = ProxyUtils.getAllCommaSeparatedHeaderValues(HttpHeaderNames.TRANSFER_ENCODING, message);
+ public void testGetHeaderValuesWhenHeadersAreEmpty() {
+ DefaultHttpMessage message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
+ List commaSeparatedHeaders = ProxyUtils.getAllCommaSeparatedHeaderValues(
+ HttpHeaderNames.TRANSFER_ENCODING, message);
assertThat(commaSeparatedHeaders, empty());
+ }
- // two headers present, but no values
- message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
+ @Test
+ public void testGetHeaderValuesWhenTwoHeadersWithNoValuesArePresent() {
+ DefaultHttpMessage message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
message.headers().add(HttpHeaderNames.TRANSFER_ENCODING, "");
message.headers().add(HttpHeaderNames.TRANSFER_ENCODING, "");
- commaSeparatedHeaders = ProxyUtils.getAllCommaSeparatedHeaderValues(HttpHeaderNames.TRANSFER_ENCODING, message);
+ List commaSeparatedHeaders = ProxyUtils.getAllCommaSeparatedHeaderValues(
+ HttpHeaderNames.TRANSFER_ENCODING, message);
assertThat(commaSeparatedHeaders, empty());
+ }
- // a single header value
- message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
+ @Test
+ public void testGetHeaderValuesWhenSingleHeaderValueIsPresent() {
+ DefaultHttpMessage message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
message.headers().add(HttpHeaderNames.TRANSFER_ENCODING, "chunked");
- commaSeparatedHeaders = ProxyUtils.getAllCommaSeparatedHeaderValues(HttpHeaderNames.TRANSFER_ENCODING, message);
+ List commaSeparatedHeaders = ProxyUtils.getAllCommaSeparatedHeaderValues(
+ HttpHeaderNames.TRANSFER_ENCODING, message);
assertThat(commaSeparatedHeaders, contains("chunked"));
+ }
- // a single header value with extra spaces
- message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
+ @Test
+ public void testGetHeaderValuesWhenSingleHeaderValueWithExtraSpacesIsPresent() {
+ DefaultHttpMessage message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
message.headers().add(HttpHeaderNames.TRANSFER_ENCODING, " chunked , ");
- commaSeparatedHeaders = ProxyUtils.getAllCommaSeparatedHeaderValues(HttpHeaderNames.TRANSFER_ENCODING, message);
+ List commaSeparatedHeaders = ProxyUtils.getAllCommaSeparatedHeaderValues(
+ HttpHeaderNames.TRANSFER_ENCODING, message);
assertThat(commaSeparatedHeaders, contains("chunked"));
+ }
- // two comma-separated values in one header line
- message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
+ @Test
+ public void testGetHeaderValuesWhenTwoCommaSeparatedValuesInOneHeaderLineArePresent() {
+ DefaultHttpMessage message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
message.headers().add(HttpHeaderNames.TRANSFER_ENCODING, "compress, gzip");
- commaSeparatedHeaders = ProxyUtils.getAllCommaSeparatedHeaderValues(HttpHeaderNames.TRANSFER_ENCODING, message);
+ List commaSeparatedHeaders = ProxyUtils.getAllCommaSeparatedHeaderValues(
+ HttpHeaderNames.TRANSFER_ENCODING, message);
assertThat(commaSeparatedHeaders, contains("compress", "gzip"));
+ }
+ @Test
+ public void testGetHeaderValuesWhenTwoCommaSeparatedValuesInOneHeaderLineWithSpuriousCommaAndSpaceArePresent() {
// two comma-separated values in one header line with a spurious ',' and space. see RFC 7230 section 7
// for information on empty list items (not all of which are valid header-values).
- message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
+ DefaultHttpMessage message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
message.headers().add(HttpHeaderNames.TRANSFER_ENCODING, "compress, gzip, ,");
- commaSeparatedHeaders = ProxyUtils.getAllCommaSeparatedHeaderValues(HttpHeaderNames.TRANSFER_ENCODING, message);
+ List commaSeparatedHeaders = ProxyUtils.getAllCommaSeparatedHeaderValues(
+ HttpHeaderNames.TRANSFER_ENCODING, message);
assertThat(commaSeparatedHeaders, contains("compress", "gzip"));
+ }
- // two values in two separate header lines
- message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
+ @Test
+ public void testGetHeaderValuesWhenTwoValuesInTwoSeparateHeaderLinesArePresent() {
+ DefaultHttpMessage message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
message.headers().add(HttpHeaderNames.TRANSFER_ENCODING, "gzip");
message.headers().add(HttpHeaderNames.TRANSFER_ENCODING, "chunked");
- commaSeparatedHeaders = ProxyUtils.getAllCommaSeparatedHeaderValues(HttpHeaderNames.TRANSFER_ENCODING, message);
+ List commaSeparatedHeaders = ProxyUtils.getAllCommaSeparatedHeaderValues(
+ HttpHeaderNames.TRANSFER_ENCODING, message);
assertThat(commaSeparatedHeaders, contains("gzip", "chunked"));
+ }
- // multiple comma-separated values in two separate header lines
- message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
+ @Test
+ public void testGetHeaderValuesWhenMultipleCommaSeparatedValuesInTwoSeparateHeaderLinesArePresent() {
+ DefaultHttpMessage message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
message.headers().add(HttpHeaderNames.TRANSFER_ENCODING, "gzip, compress");
message.headers().add(HttpHeaderNames.TRANSFER_ENCODING, "deflate, gzip");
- commaSeparatedHeaders = ProxyUtils.getAllCommaSeparatedHeaderValues(HttpHeaderNames.TRANSFER_ENCODING, message);
+ List commaSeparatedHeaders = ProxyUtils.getAllCommaSeparatedHeaderValues(
+ HttpHeaderNames.TRANSFER_ENCODING, message);
assertThat(commaSeparatedHeaders, contains("gzip", "compress", "deflate", "gzip"));
+ }
+ @Test
+ public void testGetHeaderValuesWhenMultipleCommaSeparatedValuesInMultipleSeparateHeaderLinesArePresent() {
// multiple comma-separated values in multiple header lines with spurious spaces, commas,
// and tabs (horizontal tabs are defined as optional whitespace in RFC 7230 section 3.2.3)
- message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
+ DefaultHttpMessage message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
message.headers().add(HttpHeaderNames.TRANSFER_ENCODING, " gzip,compress,");
message.headers().add(HttpHeaderNames.TRANSFER_ENCODING, "\tdeflate\t, gzip, ");
message.headers().add(HttpHeaderNames.TRANSFER_ENCODING, ",gzip,,deflate,\t, ,");
- commaSeparatedHeaders = ProxyUtils.getAllCommaSeparatedHeaderValues(HttpHeaderNames.TRANSFER_ENCODING, message);
+ List commaSeparatedHeaders = ProxyUtils.getAllCommaSeparatedHeaderValues(
+ HttpHeaderNames.TRANSFER_ENCODING, message);
assertThat(commaSeparatedHeaders, contains("gzip", "compress", "deflate", "gzip", "gzip", "deflate"));
}
From a8f6f86e01039a79d24223155587a88d27805c86 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Wed, 16 Nov 2022 20:30:04 +0200
Subject: [PATCH 159/973] fix tests after upgrading Netty
Starting from version 4.1.83.Final, Netty strictly validates names of http headers (doesn't allow commas and spaces in header name).
I don't know if LittleProxy tests really need to use such non-standard header names, but at least the test is green now. :)
---
src/test/java/org/littleshoot/proxy/impl/ProxyUtilsTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/littleshoot/proxy/impl/ProxyUtilsTest.java b/src/test/java/org/littleshoot/proxy/impl/ProxyUtilsTest.java
index df33ada9..23d788cb 100644
--- a/src/test/java/org/littleshoot/proxy/impl/ProxyUtilsTest.java
+++ b/src/test/java/org/littleshoot/proxy/impl/ProxyUtilsTest.java
@@ -85,7 +85,7 @@ public void testGetHeaderValuesWhenSingleHeaderValueIsPresent() {
@Test
public void testGetHeaderValuesWhenSingleHeaderValueWithExtraSpacesIsPresent() {
- DefaultHttpMessage message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
+ DefaultHttpMessage message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK, false);
message.headers().add(HttpHeaderNames.TRANSFER_ENCODING, " chunked , ");
List commaSeparatedHeaders = ProxyUtils.getAllCommaSeparatedHeaderValues(
HttpHeaderNames.TRANSFER_ENCODING, message);
@@ -136,7 +136,7 @@ public void testGetHeaderValuesWhenMultipleCommaSeparatedValuesInTwoSeparateHead
public void testGetHeaderValuesWhenMultipleCommaSeparatedValuesInMultipleSeparateHeaderLinesArePresent() {
// multiple comma-separated values in multiple header lines with spurious spaces, commas,
// and tabs (horizontal tabs are defined as optional whitespace in RFC 7230 section 3.2.3)
- DefaultHttpMessage message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
+ DefaultHttpMessage message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK, false);
message.headers().add(HttpHeaderNames.TRANSFER_ENCODING, " gzip,compress,");
message.headers().add(HttpHeaderNames.TRANSFER_ENCODING, "\tdeflate\t, gzip, ");
message.headers().add(HttpHeaderNames.TRANSFER_ENCODING, ",gzip,,deflate,\t, ,");
From e01eeb8cf0360ba66c58b03b561c7b0009fa682a Mon Sep 17 00:00:00 2001
From: Valery Yatsynovich
Date: Thu, 17 Nov 2022 12:39:00 +0300
Subject: [PATCH 160/973] CI: run build on all major OS-s
---
.github/workflows/main.yml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 8d34c6f8..63fe9f26 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -10,8 +10,11 @@ on:
jobs:
build:
+ strategy:
+ matrix:
+ platform: [ubuntu-latest, macos-latest, windows-latest]
- runs-on: ubuntu-latest
+ runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
@@ -35,4 +38,4 @@ jobs:
name: test-report
path: |
target/surefire-reports
- target/site
\ No newline at end of file
+ target/site
From 0b280139af9c7a771437da0f02f15ac83513013b Mon Sep 17 00:00:00 2001
From: Valery Yatsynovich
Date: Thu, 17 Nov 2022 01:58:22 +0300
Subject: [PATCH 161/973] Respect full KeyStore file path while generating
certs by `SelfSignedMitmManager`
---
.../extras/SelfSignedSslEngineSource.java | 2 +-
.../proxy/BaseChainedProxyTest.java | 3 +-
...nedGeneratedSslEngineChainedProxyTest.java | 57 +++++++++++++++++++
3 files changed, 60 insertions(+), 2 deletions(-)
create mode 100644 src/test/java/org/littleshoot/proxy/SelfSignedGeneratedSslEngineChainedProxyTest.java
diff --git a/src/main/java/org/littleshoot/proxy/extras/SelfSignedSslEngineSource.java b/src/main/java/org/littleshoot/proxy/extras/SelfSignedSslEngineSource.java
index 8a3c2084..fd35e424 100644
--- a/src/main/java/org/littleshoot/proxy/extras/SelfSignedSslEngineSource.java
+++ b/src/main/java/org/littleshoot/proxy/extras/SelfSignedSslEngineSource.java
@@ -155,7 +155,7 @@ private KeyStore loadKeyStore() throws IOException, GeneralSecurityException {
} else {
File keyStoreLocalFile = new File(keyStoreFile);
if(!keyStoreLocalFile.isFile()) {
- initializeKeyStore(keyStoreLocalFile.getName());
+ initializeKeyStore(keyStoreLocalFile.getAbsolutePath());
}
loadKeyStore(keyStore, keyStoreLocalFile.toURI().toURL());
}
diff --git a/src/test/java/org/littleshoot/proxy/BaseChainedProxyTest.java b/src/test/java/org/littleshoot/proxy/BaseChainedProxyTest.java
index c567a00f..bf33abd3 100644
--- a/src/test/java/org/littleshoot/proxy/BaseChainedProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/BaseChainedProxyTest.java
@@ -3,6 +3,7 @@
import io.netty.handler.codec.http.HttpRequest;
import org.littleshoot.proxy.impl.DefaultHttpProxyServer;
+import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.UnknownHostException;
@@ -47,7 +48,7 @@ public void requestReceivedFromClient(FlowContext flowContext,
protected HttpProxyServer upstreamProxy;
@Override
- protected void setUp() {
+ protected void setUp() throws IOException {
REQUESTS_SENT_BY_DOWNSTREAM.set(0);
REQUESTS_RECEIVED_BY_UPSTREAM.set(0);
TRANSPORTS_USED.clear();
diff --git a/src/test/java/org/littleshoot/proxy/SelfSignedGeneratedSslEngineChainedProxyTest.java b/src/test/java/org/littleshoot/proxy/SelfSignedGeneratedSslEngineChainedProxyTest.java
new file mode 100644
index 00000000..0052b616
--- /dev/null
+++ b/src/test/java/org/littleshoot/proxy/SelfSignedGeneratedSslEngineChainedProxyTest.java
@@ -0,0 +1,57 @@
+package org.littleshoot.proxy;
+
+import static org.junit.Assert.assertTrue;
+
+import java.io.File;
+import java.io.IOException;
+
+import javax.net.ssl.SSLEngine;
+
+import org.junit.Rule;
+import org.junit.Test;
+import org.junit.rules.TemporaryFolder;
+import org.littleshoot.proxy.extras.SelfSignedSslEngineSource;
+
+public class SelfSignedGeneratedSslEngineChainedProxyTest extends BaseChainedProxyTest {
+
+ @Rule
+ public TemporaryFolder temporaryFolder = new TemporaryFolder();
+
+ private SslEngineSource sslEngineSource;
+
+ @Override
+ protected void setUp() throws IOException {
+ String keyStorePath = temporaryFolder.newFolder("certs").toPath().resolve("chain_proxy_keystore.jks")
+ .toString();
+ sslEngineSource = new SelfSignedSslEngineSource(keyStorePath, false, true, "littleproxy",
+ "Be Your Own Lantern");
+ super.setUp();
+ }
+
+ @Test
+ public void testKeyStoreGeneratedAtProvidedPath() {
+ File keyStoreFile = temporaryFolder.getRoot().toPath().resolve("./certs/chain_proxy_keystore.jks").toFile();
+ assertTrue(keyStoreFile.exists());
+ }
+
+ @Override
+ protected HttpProxyServerBootstrap upstreamProxy() {
+ return super.upstreamProxy()
+ .withSslEngineSource(sslEngineSource);
+ }
+
+ @Override
+ protected ChainedProxy newChainedProxy() {
+ return new BaseChainedProxy() {
+ @Override
+ public boolean requiresEncryption() {
+ return true;
+ }
+
+ @Override
+ public SSLEngine newSslEngine() {
+ return sslEngineSource.newSslEngine();
+ }
+ };
+ }
+}
From 60ed111386827ef01241c174ee7d72074979bbac Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 21 Nov 2022 01:13:26 +0000
Subject: [PATCH 162/973] Bump dnsjava from 3.5.1 to 3.5.2
Bumps [dnsjava](https://github.com/dnsjava/dnsjava) from 3.5.1 to 3.5.2.
- [Release notes](https://github.com/dnsjava/dnsjava/releases)
- [Changelog](https://github.com/dnsjava/dnsjava/blob/master/Changelog)
- [Commits](https://github.com/dnsjava/dnsjava/compare/v3.5.1...v3.5.2)
---
updated-dependencies:
- dependency-name: dnsjava:dnsjava
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index e5c3448c..4a5abc77 100644
--- a/pom.xml
+++ b/pom.xml
@@ -278,7 +278,7 @@
dnsjavadnsjava
- 3.5.1
+ 3.5.2true
From 707dfb28f7cf46e866c9102d0fcfc5cec5952cf1 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 21 Nov 2022 01:13:19 +0000
Subject: [PATCH 163/973] Bump maven-install-plugin from 3.0.1 to 3.1.0
Bumps [maven-install-plugin](https://github.com/apache/maven-install-plugin) from 3.0.1 to 3.1.0.
- [Release notes](https://github.com/apache/maven-install-plugin/releases)
- [Commits](https://github.com/apache/maven-install-plugin/compare/maven-install-plugin-3.0.1...maven-install-plugin-3.1.0)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-install-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 4a5abc77..7062fdac 100644
--- a/pom.xml
+++ b/pom.xml
@@ -464,7 +464,7 @@
org.apache.maven.pluginsmaven-install-plugin
- 3.0.1
+ 3.1.0
From 2641a7c7a190a2f7fb83b8e5bfe083ced3ce54b9 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 21 Nov 2022 01:13:01 +0000
Subject: [PATCH 164/973] Bump slf4j.version from 2.0.3 to 2.0.4
Bumps `slf4j.version` from 2.0.3 to 2.0.4.
Updates `slf4j-reload4j` from 2.0.3 to 2.0.4
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_2.0.3...v_2.0.4)
Updates `slf4j-api` from 2.0.3 to 2.0.4
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_2.0.3...v_2.0.4)
---
updated-dependencies:
- dependency-name: org.slf4j:slf4j-reload4j
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: org.slf4j:slf4j-api
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 7062fdac..b84f3fe9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,7 +15,7 @@
UTF-8github4.1.85.Final
- 2.0.3
+ 2.0.41.8
From 4757f3242fb0625583f41feb28b733f48303c25d Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 21 Nov 2022 01:12:53 +0000
Subject: [PATCH 165/973] Bump mockito-core from 4.8.1 to 4.9.0
Bumps [mockito-core](https://github.com/mockito/mockito) from 4.8.1 to 4.9.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.8.1...v4.9.0)
---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index b84f3fe9..8ae1799d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -202,7 +202,7 @@
org.mockitomockito-core
- 4.8.1
+ 4.9.0test
From 8b98017c65293bcbac81162d713b7ed619b91580 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Mon, 21 Nov 2022 22:36:03 +0200
Subject: [PATCH 166/973] release LittleProxy 2.0.14
---
README.md | 4 ++--
RELEASE_NOTES.md | 7 ++++++-
pom.xml | 2 +-
3 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 489412bc..55dbbaaf 100644
--- a/README.md
+++ b/README.md
@@ -19,13 +19,13 @@ You can embed LittleProxy in your own projects through Maven with the following:
xyz.rogfamlittleproxy
- 2.0.13
+ 2.0.14
```
Or with Gradle like this
-`implementation "xyz.rogfam:littleproxy:2.0.13"`
+`implementation "xyz.rogfam:littleproxy:2.0.14"`
Once you've included LittleProxy, you can start the server with the following:
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index ded82b2b..bc7859b1 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -1,7 +1,12 @@
# Release Notes
-- 2.0.14
+- 2.0.14 (21.11.2022, https://github.com/LittleProxy/LittleProxy/milestone/19?closed=1)
+ - #184 Respect full KeyStore file path while generating certs by `SelfSignedMitmManager` -- thanks to Valery Yatsynovich
+ - #187 CI: run build on all major OS-s -- thanks to Valery Yatsynovich
+ - #183 Bump netty from 4.1.82.Final to 4.1.85.Final -- thanks to Valery Yatsynovich for fixing tests after upgrading Netty.
+ - #189 Bump slf4j.version from 2.0.3 to 2.0.4
- Bump jackson-databind from 2.13.2.2 to 2.13.4
+ - #191 Bump dnsjava from 3.5.1 to 3.5.2
- 2.0.13 (04.10.2022)
- #170 restore transitive dependencies in generated pom -- thanks to Mateusz Pietryga for PR #171
diff --git a/pom.xml b/pom.xml
index 8ae1799d..119cdb06 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
xyz.rogfamlittleproxyjar
- 2.0.14-SNAPSHOT
+ 2.0.14LittleProxy
LittleProxy is a high performance HTTP proxy written in Java and using the Netty networking framework.
From 3ae0ecfb8ec829f02ab3fa61214a63b48157477f Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Mon, 21 Nov 2022 22:45:00 +0200
Subject: [PATCH 167/973] working on LittleProxy 2.0.15
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 119cdb06..af706b1a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
xyz.rogfamlittleproxyjar
- 2.0.14
+ 2.0.15-SNAPSHOTLittleProxy
LittleProxy is a high performance HTTP proxy written in Java and using the Netty networking framework.
From 075032d4b722b7f16c4d92d2aedf00fe6fd4b87b Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 28 Nov 2022 00:48:07 +0000
Subject: [PATCH 168/973] Bump slf4j.version from 2.0.4 to 2.0.5
Bumps `slf4j.version` from 2.0.4 to 2.0.5.
Updates `slf4j-reload4j` from 2.0.4 to 2.0.5
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_2.0.4...v_2.0.5)
Updates `slf4j-api` from 2.0.4 to 2.0.5
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_2.0.4...v_2.0.5)
---
updated-dependencies:
- dependency-name: org.slf4j:slf4j-reload4j
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: org.slf4j:slf4j-api
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index af706b1a..030e01c2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,7 +15,7 @@
UTF-8github4.1.85.Final
- 2.0.4
+ 2.0.51.8
From 625c8672e7daf462f647574048559bcbc57e23e4 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 5 Dec 2022 00:28:08 +0000
Subject: [PATCH 169/973] Bump selenium-java from 4.6.0 to 4.7.0
Bumps [selenium-java](https://github.com/SeleniumHQ/selenium) from 4.6.0 to 4.7.0.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Commits](https://github.com/SeleniumHQ/selenium/compare/selenium-4.6.0...selenium-4.7.0)
---
updated-dependencies:
- dependency-name: org.seleniumhq.selenium:selenium-java
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 030e01c2..99dd39a6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -222,7 +222,7 @@
org.seleniumhq.seleniumselenium-java
- 4.6.0
+ 4.7.0test
From 0b2d7c4eb9fa7da3e925a4414750ebe62dfcdfc4 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 5 Dec 2022 00:28:27 +0000
Subject: [PATCH 170/973] Bump httpclient from 4.5.13 to 4.5.14
Bumps httpclient from 4.5.13 to 4.5.14.
---
updated-dependencies:
- dependency-name: org.apache.httpcomponents:httpclient
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 99dd39a6..479699c5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -242,7 +242,7 @@
org.apache.httpcomponentshttpclient
- 4.5.13
+ 4.5.14test
From 8decca054627913a145e9e25aeae4b6ddccbe49f Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 5 Dec 2022 00:28:33 +0000
Subject: [PATCH 171/973] Bump maven-dependency-plugin from 3.3.0 to 3.4.0
Bumps [maven-dependency-plugin](https://github.com/apache/maven-dependency-plugin) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/apache/maven-dependency-plugin/releases)
- [Commits](https://github.com/apache/maven-dependency-plugin/compare/maven-dependency-plugin-3.3.0...maven-dependency-plugin-3.4.0)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-dependency-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 479699c5..7025d0bc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -435,7 +435,7 @@
org.apache.maven.pluginsmaven-dependency-plugin
- 3.3.0
+ 3.4.0
From 74ef8d6cd59fb551886301a84c69c0093adf47c2 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 12 Dec 2022 21:41:23 +0000
Subject: [PATCH 172/973] Bump netty-codec-haproxy from 4.1.85.Final to
4.1.86.Final
Bumps [netty-codec-haproxy](https://github.com/netty/netty) from 4.1.85.Final to 4.1.86.Final.
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.85.Final...netty-4.1.86.Final)
---
updated-dependencies:
- dependency-name: io.netty:netty-codec-haproxy
dependency-type: direct:production
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 7025d0bc..a7fc17ef 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
UTF-8UTF-8github
- 4.1.85.Final
+ 4.1.86.Final2.0.51.8
From 5868c17c1f66df7f16bce7d9e1dca00637529e15 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 12 Dec 2022 00:17:18 +0000
Subject: [PATCH 173/973] Bump selenium-java from 4.7.0 to 4.7.1
Bumps [selenium-java](https://github.com/SeleniumHQ/selenium) from 4.7.0 to 4.7.1.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Commits](https://github.com/SeleniumHQ/selenium/commits)
---
updated-dependencies:
- dependency-name: org.seleniumhq.selenium:selenium-java
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index a7fc17ef..5f210344 100644
--- a/pom.xml
+++ b/pom.xml
@@ -222,7 +222,7 @@
org.seleniumhq.seleniumselenium-java
- 4.7.0
+ 4.7.1test
From a0397007cf400d5f12d0e6055d2bee74375230b8 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Tue, 13 Dec 2022 23:51:43 +0200
Subject: [PATCH 174/973] release LittleProxy 2.0.15
---
README.md | 4 ++--
RELEASE_NOTES.md | 6 ++++++
pom.xml | 2 +-
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 55dbbaaf..fbca0dcd 100644
--- a/README.md
+++ b/README.md
@@ -19,13 +19,13 @@ You can embed LittleProxy in your own projects through Maven with the following:
xyz.rogfamlittleproxy
- 2.0.14
+ 2.0.15
```
Or with Gradle like this
-`implementation "xyz.rogfam:littleproxy:2.0.14"`
+`implementation "xyz.rogfam:littleproxy:2.0.15"`
Once you've included LittleProxy, you can start the server with the following:
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index bc7859b1..af22e156 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -1,5 +1,11 @@
# Release Notes
+- 2.0.15 (14.12.2022, https://github.com/LittleProxy/LittleProxy/milestone/TODO?closed=1)
+ - Bump netty-codec-haproxy from 4.1.85.Final to 4.1.86.Final
+ - Bump selenium-java from 4.6.0 to 4.7.1
+ - Bump slf4j.version from 2.0.4 to 2.0.5
+ - Bump httpclient from 4.5.13 to 4.5.14
+
- 2.0.14 (21.11.2022, https://github.com/LittleProxy/LittleProxy/milestone/19?closed=1)
- #184 Respect full KeyStore file path while generating certs by `SelfSignedMitmManager` -- thanks to Valery Yatsynovich
- #187 CI: run build on all major OS-s -- thanks to Valery Yatsynovich
diff --git a/pom.xml b/pom.xml
index 5f210344..fa78f7bf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
xyz.rogfamlittleproxyjar
- 2.0.15-SNAPSHOT
+ 2.0.15LittleProxy
LittleProxy is a high performance HTTP proxy written in Java and using the Netty networking framework.
From 981cc87484eb293a9bb7aeec3842c0e48ef84810 Mon Sep 17 00:00:00 2001
From: Andrei Solntsev
Date: Tue, 13 Dec 2022 23:59:35 +0200
Subject: [PATCH 175/973] working on LittleProxy 2.0.16
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index fa78f7bf..aab67989 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
xyz.rogfamlittleproxyjar
- 2.0.15
+ 2.0.16-SNAPSHOTLittleProxy
LittleProxy is a high performance HTTP proxy written in Java and using the Netty networking framework.
From 3ee3cba213a774743af8d69b3b2d762696c34201 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 19 Dec 2022 00:48:44 +0000
Subject: [PATCH 176/973] Bump mockito-core from 4.9.0 to 4.10.0
Bumps [mockito-core](https://github.com/mockito/mockito) from 4.9.0 to 4.10.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.9.0...v4.10.0)
---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index aab67989..633461ee 100644
--- a/pom.xml
+++ b/pom.xml
@@ -202,7 +202,7 @@
org.mockitomockito-core
- 4.9.0
+ 4.10.0test
From 70825cee6b8b639b7210fc9250622555fd85c6f1 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 19 Dec 2022 00:48:24 +0000
Subject: [PATCH 177/973] Bump slf4j.version from 2.0.5 to 2.0.6
Bumps `slf4j.version` from 2.0.5 to 2.0.6.
Updates `slf4j-reload4j` from 2.0.5 to 2.0.6
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_2.0.5...v_2.0.6)
Updates `slf4j-api` from 2.0.5 to 2.0.6
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_2.0.5...v_2.0.6)
---
updated-dependencies:
- dependency-name: org.slf4j:slf4j-reload4j
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: org.slf4j:slf4j-api
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 633461ee..e4b5325d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,7 +15,7 @@
UTF-8github4.1.86.Final
- 2.0.5
+ 2.0.61.8
From 938853f97519ffb2564ed9be8df44070800f2a81 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 19 Dec 2022 00:48:50 +0000
Subject: [PATCH 178/973] Bump selenium-java from 4.7.1 to 4.7.2
Bumps [selenium-java](https://github.com/SeleniumHQ/selenium) from 4.7.1 to 4.7.2.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Commits](https://github.com/SeleniumHQ/selenium/commits)
---
updated-dependencies:
- dependency-name: org.seleniumhq.selenium:selenium-java
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index e4b5325d..2a71f720 100644
--- a/pom.xml
+++ b/pom.xml
@@ -222,7 +222,7 @@
org.seleniumhq.seleniumselenium-java
- 4.7.1
+ 4.7.2test
From 5b0331d79d210c71da7aeb4c4f3c511f93e2bb9e Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 19 Dec 2022 00:48:59 +0000
Subject: [PATCH 179/973] Bump versions-maven-plugin from 2.13.0 to 2.14.1
Bumps [versions-maven-plugin](https://github.com/mojohaus/versions) from 2.13.0 to 2.14.1.
- [Release notes](https://github.com/mojohaus/versions/releases)
- [Changelog](https://github.com/mojohaus/versions/blob/master/ReleaseNotes.md)
- [Commits](https://github.com/mojohaus/versions/compare/2.13.0...2.14.1)
---
updated-dependencies:
- dependency-name: org.codehaus.mojo:versions-maven-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 2a71f720..4e629a41 100644
--- a/pom.xml
+++ b/pom.xml
@@ -702,7 +702,7 @@
org.codehaus.mojoversions-maven-plugin
- 2.13.0
+ 2.14.1
From 39741b3fe585d241d5b51414e17849108c3bd8ac Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 26 Dec 2022 00:47:41 +0000
Subject: [PATCH 180/973] Bump versions-maven-plugin from 2.14.1 to 2.14.2
Bumps [versions-maven-plugin](https://github.com/mojohaus/versions) from 2.14.1 to 2.14.2.
- [Release notes](https://github.com/mojohaus/versions/releases)
- [Changelog](https://github.com/mojohaus/versions/blob/master/ReleaseNotes.md)
- [Commits](https://github.com/mojohaus/versions/compare/2.14.1...2.14.2)
---
updated-dependencies:
- dependency-name: org.codehaus.mojo:versions-maven-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 4e629a41..ea2dde98 100644
--- a/pom.xml
+++ b/pom.xml
@@ -702,7 +702,7 @@
org.codehaus.mojoversions-maven-plugin
- 2.14.1
+ 2.14.2
From e7a2f52957e9ca032b7c38f3f5e5ad59e8db6470 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 2 Jan 2023 00:23:05 +0000
Subject: [PATCH 181/973] Bump mockito-core from 4.10.0 to 4.11.0
Bumps [mockito-core](https://github.com/mockito/mockito) from 4.10.0 to 4.11.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.10.0...v4.11.0)
---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ea2dde98..c5d32a4e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -202,7 +202,7 @@
org.mockitomockito-core
- 4.10.0
+ 4.11.0test
From bf28ed5cec2ce11b71035d7848c1e75de0124192 Mon Sep 17 00:00:00 2001
From: Valery Yatsynovich
Date: Fri, 6 Jan 2023 12:51:54 +0300
Subject: [PATCH 182/973] Remove redundant file generated by unit test
In general the removed file should never be committed, since it's generated
by unit tests which were designed to use build root directory instead of temp directories.
---
littleproxy_cert | Bin 1233 -> 0 bytes
1 file changed, 0 insertions(+), 0 deletions(-)
delete mode 100644 littleproxy_cert
diff --git a/littleproxy_cert b/littleproxy_cert
deleted file mode 100644
index a0eadde6a2d042d146cda08c6def39fbc1aa9c5d..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 1233
zcmV;?1TOn9f&|SlfUm0|Eg80t9US`1&vn1_>&LNQUWc`zUs4Kgt?GBPnRFfuYRH(D4EGBGkSF)=bXFfcMQF*jN;7BLhs
z5(WcR1OpQbY-x0KY-MnAZ+Lkyf&wBi4F(A+hDe6@4FLfG1potr0uKN%f&vNxf&u{m
zqG==pQ3o%?WYKEJk{~Jb7pArggWH$U=+!b>mZ&1U(-WemftpzP<~8J7BigZsM69Wf
z-KzI&u~`(Pdu?5u#c<=`sN6|ZXj(AIU26)-8ee9PVfRh>FwAf)^PAk@MPTP2vsj<;
zPYF?8+R~bw@fli41kfwBpb9o(BG#zzZYgie*RGn*UM!5ER>?g&_
z^iZga`AY%OzI|-r82g^!SKXxyLFU=+o>8V@(H~6E?;Jv3if99(n+_1uII?F#Ta&4$
z*@eWFCo-X>_bu!hL@F;lT@7`S)Wczf2+qdTBZh$+U9CrMT
zFqGx5@vII`{2wB9X~~6aR!{5^=_&$NDMfR7ngeHZHrg6olj%n09jQ%?9IpOz#dZ%4
zX$sSxMaq5oa|5B{`m%eo4C=9P8AhL%(jCxojcZP%-!t&cWHUuKvA3
zq&>({Iz=mCi9P=CtMDjGL~^h$lds9tX&_uyx2=YQirmlx!yl6+^^qD*Kyo;sbir
zqxu}PCHF8-tH#)mXE8r{=IvJ*408=M+BRHJwuDw?2~K!upYa|&!GjcU0s{d60iz)>
zA21yT163Uk1QrAo17@+wW2sx7ExFIU0z8SXkd6!4FbxI?Duzgg_YDC73k3iJf&u{m
ziTdUjoF4`wTv#TApjGF}XHtD?+dPQRb^}ZS0S{@~H1Vp;$(laf(G{^;Sqh92VQ4}e
zZT)fFq|`Mz3@cr66o4QycH_!AYwXRb5{77df$f*JA5H?%h64TXj0FmEMeWb+wy`IT
z^Yg{%;5sAdd;j40y{Hsguwkcy6SXyarg`@hotkYVa>d!31hTG@=p|~ql_JZ}kcr&x
z0zBg~$C|5MID&lTOVMM03G4xXh?MMiW2v)xfWVx))((A4yrv_gM!jiVlGNeIgI+n9
z!g4ZwsG?GDH2Ty)M2zYkY+I2rGlJ+6t1HiTIpQunh=@8ne7n%81%9Y%k>7!`Z$OT^
z`PH{Sqojd7B?JvamC1;b1>e$e-s5B+>P4p{EpkWSoM(LBGtzlFEH=55!kf~zOjo_e)J+66Dq_FIh|gEnDT>E^zMpu8M|#jF9LvzI;$8t@b=
z0=6q$XR9VPnFOo{C)xa65z|f2oYqYHg>~XUm6VO**kTRm_c?h|un6k5Q{v@wS_PMB
vV^gKEyT_*v$zcnxfag}no@x6-GCyckEpI$8oDW7{mKG{epS}pz^|5gC4Zk$A
From 52f1dd39133d02d29feb870a8cc559442f6d891c Mon Sep 17 00:00:00 2001
From: Valery Yatsynovich
Date: Fri, 6 Jan 2023 12:40:00 +0300
Subject: [PATCH 183/973] Export certificate to generated by
`SelfSignedMitmManager` keystore directory
`SelfSignedMitmManager` created KeyStore file at the provided path and then exported certificate
to another directory (depending on the execution way, usually it was a root directory of the running process).
This change fixes the behavior: now certificate is exported to the same directory where KeyStore file is created.
---
.../extras/SelfSignedSslEngineSource.java | 32 +++++++++++++------
...nedGeneratedSslEngineChainedProxyTest.java | 6 ++++
2 files changed, 28 insertions(+), 10 deletions(-)
diff --git a/src/main/java/org/littleshoot/proxy/extras/SelfSignedSslEngineSource.java b/src/main/java/org/littleshoot/proxy/extras/SelfSignedSslEngineSource.java
index fd35e424..f72c9aa1 100644
--- a/src/main/java/org/littleshoot/proxy/extras/SelfSignedSslEngineSource.java
+++ b/src/main/java/org/littleshoot/proxy/extras/SelfSignedSslEngineSource.java
@@ -10,6 +10,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
+import java.nio.file.Paths;
import java.security.GeneralSecurityException;
import java.security.KeyStore;
import java.security.Security;
@@ -79,15 +80,26 @@ public SSLContext getSslContext() {
return sslContext;
}
- private void initializeKeyStore(String filename) {
- nativeCall("keytool", "-genkey", "-alias", alias, "-keysize",
- "4096", "-validity", "36500", "-keyalg", "RSA", "-dname",
- "CN=littleproxy", "-keypass", password, "-storepass",
- password, "-keystore", filename);
-
- nativeCall("keytool", "-exportcert", "-alias", alias, "-keystore",
- filename, "-storepass", password, "-file",
- "littleproxy_cert");
+ private void initializeKeyStore(File keyStoreLocalFile) {
+ File keyStoreLocalAbsoluteFile = keyStoreLocalFile.getAbsoluteFile();
+
+ nativeCall("keytool", "-genkey",
+ "-alias", alias,
+ "-keysize", "4096",
+ "-validity", "36500",
+ "-keyalg", "RSA",
+ "-dname", "CN=littleproxy",
+ "-keypass", password,
+ "-storepass", password,
+ "-keystore", keyStoreLocalAbsoluteFile.getPath()
+ );
+
+ nativeCall("keytool", "-exportcert",
+ "-alias", alias,
+ "-keystore", keyStoreLocalAbsoluteFile.getPath(),
+ "-storepass", password,
+ "-file", Paths.get(keyStoreLocalAbsoluteFile.getParent(),"littleproxy_cert").toString()
+ );
}
private void initializeSSLContext() {
@@ -155,7 +167,7 @@ private KeyStore loadKeyStore() throws IOException, GeneralSecurityException {
} else {
File keyStoreLocalFile = new File(keyStoreFile);
if(!keyStoreLocalFile.isFile()) {
- initializeKeyStore(keyStoreLocalFile.getAbsolutePath());
+ initializeKeyStore(keyStoreLocalFile);
}
loadKeyStore(keyStore, keyStoreLocalFile.toURI().toURL());
}
diff --git a/src/test/java/org/littleshoot/proxy/SelfSignedGeneratedSslEngineChainedProxyTest.java b/src/test/java/org/littleshoot/proxy/SelfSignedGeneratedSslEngineChainedProxyTest.java
index 0052b616..e1a2825e 100644
--- a/src/test/java/org/littleshoot/proxy/SelfSignedGeneratedSslEngineChainedProxyTest.java
+++ b/src/test/java/org/littleshoot/proxy/SelfSignedGeneratedSslEngineChainedProxyTest.java
@@ -34,6 +34,12 @@ public void testKeyStoreGeneratedAtProvidedPath() {
assertTrue(keyStoreFile.exists());
}
+ @Test
+ public void testCertExportedToKeyStoreDirectory() {
+ File certFile = temporaryFolder.getRoot().toPath().resolve("./certs/littleproxy_cert").toFile();
+ assertTrue(certFile.exists());
+ }
+
@Override
protected HttpProxyServerBootstrap upstreamProxy() {
return super.upstreamProxy()
From b764af63e80be049682a4cb9a787f99b4718d8ea Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 16 Jan 2023 00:58:46 +0000
Subject: [PATCH 184/973] Bump netty.version from 4.1.86.Final to 4.1.87.Final
Bumps `netty.version` from 4.1.86.Final to 4.1.87.Final.
Updates `netty-all` from 4.1.86.Final to 4.1.87.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.86.Final...netty-4.1.87.Final)
Updates `netty-example` from 4.1.86.Final to 4.1.87.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.86.Final...netty-4.1.87.Final)
Updates `netty-buffer` from 4.1.86.Final to 4.1.87.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.86.Final...netty-4.1.87.Final)
Updates `netty-codec` from 4.1.86.Final to 4.1.87.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.86.Final...netty-4.1.87.Final)
Updates `netty-codec-haproxy` from 4.1.86.Final to 4.1.87.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.86.Final...netty-4.1.87.Final)
Updates `netty-codec-http` from 4.1.86.Final to 4.1.87.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.86.Final...netty-4.1.87.Final)
Updates `netty-codec-socks` from 4.1.86.Final to 4.1.87.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.86.Final...netty-4.1.87.Final)
Updates `netty-common` from 4.1.86.Final to 4.1.87.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.86.Final...netty-4.1.87.Final)
Updates `netty-handler` from 4.1.86.Final to 4.1.87.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.86.Final...netty-4.1.87.Final)
Updates `netty-handler-proxy` from 4.1.86.Final to 4.1.87.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.86.Final...netty-4.1.87.Final)
Updates `netty-transport` from 4.1.86.Final to 4.1.87.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.86.Final...netty-4.1.87.Final)
Updates `netty-transport-rxtx` from 4.1.86.Final to 4.1.87.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.86.Final...netty-4.1.87.Final)
Updates `netty-transport-sctp` from 4.1.86.Final to 4.1.87.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.86.Final...netty-4.1.87.Final)
Updates `netty-transport-udp` from 4.1.86.Final to 4.1.87.Final
---
updated-dependencies:
- dependency-name: io.netty:netty-all
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-example
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-buffer
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-haproxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-http
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-codec-socks
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-common
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-handler-proxy
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-rxtx
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-sctp
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: io.netty:netty-transport-udp
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index c5d32a4e..ac060a2b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
UTF-8UTF-8github
- 4.1.86.Final
+ 4.1.87.Final2.0.61.8
From bbe2ddb431d301cf69c7e2c2d7acc77d1e5472f5 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 16 Jan 2023 00:59:44 +0000
Subject: [PATCH 185/973] Bump maven-dependency-plugin from 3.4.0 to 3.5.0
Bumps [maven-dependency-plugin](https://github.com/apache/maven-dependency-plugin) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/apache/maven-dependency-plugin/releases)
- [Commits](https://github.com/apache/maven-dependency-plugin/compare/maven-dependency-plugin-3.4.0...maven-dependency-plugin-3.5.0)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-dependency-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ac060a2b..daf8f771 100644
--- a/pom.xml
+++ b/pom.xml
@@ -435,7 +435,7 @@
org.apache.maven.pluginsmaven-dependency-plugin
- 3.4.0
+ 3.5.0
From 49ad8a96c2c2ea4bebf8f4fd39988074930e17c1 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 16 Jan 2023 01:00:45 +0000
Subject: [PATCH 186/973] Bump maven-project-info-reports-plugin from 3.4.1 to
3.4.2
Bumps [maven-project-info-reports-plugin](https://github.com/apache/maven-project-info-reports-plugin) from 3.4.1 to 3.4.2.
- [Release notes](https://github.com/apache/maven-project-info-reports-plugin/releases)
- [Commits](https://github.com/apache/maven-project-info-reports-plugin/compare/maven-project-info-reports-plugin-3.4.1...maven-project-info-reports-plugin-3.4.2)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-project-info-reports-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index daf8f771..3e671729 100644
--- a/pom.xml
+++ b/pom.xml
@@ -630,7 +630,7 @@
org.apache.maven.pluginsmaven-project-info-reports-plugin
- 3.4.1
+ 3.4.2
From e9ab816e8e9f3d1cdf7d1231345e283fbf802891 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 16 Jan 2023 01:00:51 +0000
Subject: [PATCH 187/973] Bump maven-surefire-report-plugin from 3.0.0-M7 to
3.0.0-M8
Bumps [maven-surefire-report-plugin](https://github.com/apache/maven-surefire) from 3.0.0-M7 to 3.0.0-M8.
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.0.0-M7...surefire-3.0.0-M8)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-surefire-report-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 3e671729..bedc03d8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -641,7 +641,7 @@
org.apache.maven.pluginsmaven-surefire-report-plugin
- 3.0.0-M7
+ 3.0.0-M8false
From bd5ccf84003a24db205e28dc2f8908f1856e2eab Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 16 Jan 2023 01:00:57 +0000
Subject: [PATCH 188/973] Bump maven-pmd-plugin from 3.19.0 to 3.20.0
Bumps [maven-pmd-plugin](https://github.com/apache/maven-pmd-plugin) from 3.19.0 to 3.20.0.
- [Release notes](https://github.com/apache/maven-pmd-plugin/releases)
- [Commits](https://github.com/apache/maven-pmd-plugin/compare/maven-pmd-plugin-3.19.0...maven-pmd-plugin-3.20.0)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-pmd-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index bedc03d8..49ae2a9c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -690,7 +690,7 @@
org.apache.maven.pluginsmaven-pmd-plugin
- 3.19.0
+ 3.20.0trueutf-8
From f941a4b2370ce8139472d93098a1167d21d48ee7 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 23 Jan 2023 00:54:02 +0000
Subject: [PATCH 189/973] Bump maven-surefire-plugin from 3.0.0-M7 to 3.0.0-M8
Bumps [maven-surefire-plugin](https://github.com/apache/maven-surefire) from 3.0.0-M7 to 3.0.0-M8.
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.0.0-M7...surefire-3.0.0-M8)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-surefire-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 49ae2a9c..18f48856 100644
--- a/pom.xml
+++ b/pom.xml
@@ -502,7 +502,7 @@
org.apache.maven.pluginsmaven-surefire-plugin
- 3.0.0-M7
+ 3.0.0-M8
From e8473d20a56eec4ced50e7f0b43b1638f54224fa Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 23 Jan 2023 00:53:45 +0000
Subject: [PATCH 190/973] Bump maven-checkstyle-plugin from 3.2.0 to 3.2.1
Bumps [maven-checkstyle-plugin](https://github.com/apache/maven-checkstyle-plugin) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/apache/maven-checkstyle-plugin/releases)
- [Commits](https://github.com/apache/maven-checkstyle-plugin/compare/maven-checkstyle-plugin-3.2.0...maven-checkstyle-plugin-3.2.1)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-checkstyle-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 18f48856..278f74e9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -650,7 +650,7 @@
org.apache.maven.pluginsmaven-checkstyle-plugin
- 3.2.0
+ 3.2.1
From 61b87d7c4ac40b1fce14de9003b5206bc6f6bbb2 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 23 Jan 2023 00:54:13 +0000
Subject: [PATCH 191/973] Bump mockserver-netty from 5.14.0 to 5.15.0
Bumps [mockserver-netty](https://github.com/jamesdbloom/mockservice) from 5.14.0 to 5.15.0.
- [Release notes](https://github.com/jamesdbloom/mockservice/releases)
- [Changelog](https://github.com/mock-server/mockserver/blob/master/changelog.md)
- [Commits](https://github.com/jamesdbloom/mockservice/compare/mockserver-5.14.0...mockserver-5.15.0)
---
updated-dependencies:
- dependency-name: org.mock-server:mockserver-netty
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 278f74e9..852d2cdb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -209,7 +209,7 @@
org.mock-servermockserver-netty
- 5.14.0
+ 5.15.0test
From 887ace54322fc0c0c44f3d9ac66583b781378b4c Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 23 Jan 2023 00:54:45 +0000
Subject: [PATCH 192/973] Bump mockito-core from 4.11.0 to 5.0.0
Bumps [mockito-core](https://github.com/mockito/mockito) from 4.11.0 to 5.0.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.11.0...v5.0.0)
---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 852d2cdb..6480e8f7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -202,7 +202,7 @@
org.mockitomockito-core
- 4.11.0
+ 5.0.0test
From f2c5c182c42ac67ba193791a66c4520bbe1b0573 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 30 Jan 2023 00:53:43 +0000
Subject: [PATCH 193/973] Bump selenium-java from 4.7.2 to 4.8.0
Bumps [selenium-java](https://github.com/SeleniumHQ/selenium) from 4.7.2 to 4.8.0.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Commits](https://github.com/SeleniumHQ/selenium/commits/selenium-4.8.0)
---
updated-dependencies:
- dependency-name: org.seleniumhq.selenium:selenium-java
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 6480e8f7..3877ffb9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -222,7 +222,7 @@
org.seleniumhq.seleniumselenium-java
- 4.7.2
+ 4.8.0test
From a16109259070f44843f57e859033a40f4f4a638f Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 30 Jan 2023 00:53:37 +0000
Subject: [PATCH 194/973] Bump mockito-core from 5.0.0 to 5.1.0
Bumps [mockito-core](https://github.com/mockito/mockito) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v5.0.0...v5.1.0)
---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 3877ffb9..f78b883e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -202,7 +202,7 @@