author int64 658 755k | date stringdate 2012-06-12 08:34:29 2024-07-22 14:51:21 | timezone int64 -46,800 43.2k | hash stringlengths 40 40 | message stringlengths 5 490 | mods listlengths 1 16 | language stringclasses 20
values | license stringclasses 3
values | repo stringlengths 5 68 | original_message stringlengths 12 491 |
|---|---|---|---|---|---|---|---|---|---|
686,981 | 03.06.2020 11:11:23 | -3,600 | 8b7f1e1c1368f6e064e052f9e1eff387ef11925e | Add a TrustSpecificHostsStrategy to allow trusting specific hosts
All the tests now pass, but lots of refactoring is needed! | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/http/HttpClientFactory.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/http/HttpClientFactory.java",
"diff": "@@ -20,6 +20,7 @@ import com.github.tomakehurst.wiremock.common.ProxySettings;\nimport... | Java | Apache License 2.0 | tomakehurst/wiremock | Add a TrustSpecificHostsStrategy to allow trusting specific hosts
All the tests now pass, but lots of refactoring is needed! |
686,981 | 03.06.2020 11:15:27 | -3,600 | 8eea8b3ad19c219c686590c2297eaa70f0bd506c | Move hostname verification into JVM default behaviour
Means we don't need to do our own hostname verifier logic that
differs depending on whether or not we're just trusting an
endpoint regardless of certificate. | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/http/HttpClientFactory.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/http/HttpClientFactory.java",
"diff": "@@ -17,6 +17,7 @@ package com.github.tomakehurst.wiremock.http;\nimport com.github.tom... | Java | Apache License 2.0 | tomakehurst/wiremock | Move hostname verification into JVM default behaviour
Means we don't need to do our own hostname verifier logic that
differs depending on whether or not we're just trusting an
endpoint regardless of certificate. |
686,981 | 03.06.2020 15:11:42 | -3,600 | badc431a92bda0e7b6f55f62e9b588fb37dcbf5f | Suppress sun internal api warnings
It's a deliberate choice | [
{
"change_type": "MODIFY",
"old_path": "build.gradle",
"new_path": "build.gradle",
"diff": "@@ -136,6 +136,7 @@ allprojects {\ncompileTestJava {\noptions.encoding = 'UTF-8'\n+ options.compilerArgs += '-XDenableSunApiLintControl'\n}\ntest {\n"
},
{
"change_type": "MODIFY",
"old_path": "sr... | Java | Apache License 2.0 | tomakehurst/wiremock | Suppress sun internal api warnings
It's a deliberate choice |
686,981 | 03.06.2020 15:15:53 | -3,600 | 2158ec2b4c5e30187ac76bd3e62dd399ed764eb3 | Accept trusted proxy targets as configuration | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/core/Options.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/core/Options.java",
"diff": "@@ -74,4 +74,5 @@ public interface Options {\nboolean getStubRequestLoggingDisabled();\nboolean getStubCor... | Java | Apache License 2.0 | tomakehurst/wiremock | Accept trusted proxy targets as configuration |
686,981 | 03.06.2020 17:35:20 | -3,600 | 94f0ec14b80dd419231e67d3e6e46ba264e3be42 | Show proxy target config on startup | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/standalone/CommandLineOptions.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/standalone/CommandLineOptions.java",
"diff": "@@ -36,6 +36,7 @@ import com.github.tomakehurst.wiremock.security.NoAuth... | Java | Apache License 2.0 | tomakehurst/wiremock | Show proxy target config on startup |
686,981 | 05.06.2020 11:49:06 | -3,600 | 1b4251769b72a305e49e6182654235c2e0602c66 | Let mockito handle creating a stub value | [
{
"change_type": "MODIFY",
"old_path": "src/test/java/com/github/tomakehurst/wiremock/http/ssl/CompositeTrustManagerTest.java",
"new_path": "src/test/java/com/github/tomakehurst/wiremock/http/ssl/CompositeTrustManagerTest.java",
"diff": "@@ -132,10 +132,10 @@ public class CompositeTrustManagerTest {... | Java | Apache License 2.0 | tomakehurst/wiremock | Let mockito handle creating a stub value |
686,981 | 05.06.2020 12:12:52 | -3,600 | 4d45cf439933a7c850943ea45da0e517859f73e5 | Clean up the SSLContextBuilder
Remove unused elements | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/http/HttpClientFactory.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/http/HttpClientFactory.java",
"diff": "@@ -151,8 +151,7 @@ public class HttpClientFactory {\ntry {\nKeyStore trustStore = tru... | Java | Apache License 2.0 | tomakehurst/wiremock | Clean up the SSLContextBuilder
Remove unused elements |
686,981 | 05.06.2020 12:48:52 | -3,600 | 1101f5f66939270813101984f09ffe8992e7b3a7 | Document HTTPS proxy behaviour better | [
{
"change_type": "MODIFY",
"old_path": "docs-v2/_docs/proxying.md",
"new_path": "docs-v2/_docs/proxying.md",
"diff": "@@ -136,6 +136,35 @@ wiremock-jre8 allows forward proxying, stubbing & recording of HTTPS traffic. By\n```bash\n$ java -jar wiremock-jre8-standalone-{{ site.wiremock_version }}.jar -... | Java | Apache License 2.0 | tomakehurst/wiremock | Document HTTPS proxy behaviour better |
686,981 | 05.06.2020 14:14:50 | -3,600 | 9f77ef5c742fd2f479dd05b8bf78afa94cb97758 | Fix Java 1.7 compile error
The method doesn't exist on the super class until Java 1.8.
All the tests still pass, so I guess it was never called, as the super class in
Java 1.8 throws `UnsupportedOperationException`. | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/http/ssl/HostVerifyingSSLSocketFactory.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/http/ssl/HostVerifyingSSLSocketFactory.java",
"diff": "@@ -29,10 +29,6 @@ public class HostVerifyingSSLSocket... | Java | Apache License 2.0 | tomakehurst/wiremock | Fix Java 1.7 compile error
The method doesn't exist on the super class until Java 1.8.
All the tests still pass, so I guess it was never called, as the super class in
Java 1.8 throws `UnsupportedOperationException`. |
686,981 | 05.06.2020 21:47:52 | -3,600 | 68ed1ad22f616af7e9d96c6d81b1925dd6007f17 | Downgrade mockito to a Java 7 compatible version | [
{
"change_type": "MODIFY",
"old_path": "build.gradle",
"new_path": "build.gradle",
"diff": "@@ -113,7 +113,7 @@ allprojects {\nexclude group: \"org.hamcrest\", module: \"hamcrest-core\"\nexclude group: \"org.hamcrest\", module: \"hamcrest-library\"\n}\n- testCompile 'org.mockito:mockito-core:3.3.3'\... | Java | Apache License 2.0 | tomakehurst/wiremock | Downgrade mockito to a Java 7 compatible version |
686,981 | 10.06.2020 11:59:44 | -3,600 | 0f10f7cdbfff901406afeb9c89df653632de6e41 | Add acceptance test for trusting certs in trust store
Adds the public certificate from test-keystore to test-truststore.jks/pkcs12 so
that a proxy WireMock with test-truststore.pkcs12 as its trust store will trust
the certificate from a target WireMock with test-keystore as its keystore. | [
{
"change_type": "MODIFY",
"old_path": "java8/src/test/java/com/github/tomakehurst/wiremock/HttpsBrowserProxyAcceptanceTest.java",
"new_path": "java8/src/test/java/com/github/tomakehurst/wiremock/HttpsBrowserProxyAcceptanceTest.java",
"diff": "@@ -40,6 +40,8 @@ import static com.github.tomakehurst.w... | Java | Apache License 2.0 | tomakehurst/wiremock | Add acceptance test for trusting certs in trust store
Adds the public certificate from test-keystore to test-truststore.jks/pkcs12 so
that a proxy WireMock with test-truststore.pkcs12 as its trust store will trust
the certificate from a target WireMock with test-keystore as its keystore. |
686,981 | 10.06.2020 12:01:56 | -3,600 | d66d809ef3373702a337afe6695b9a072960eaa3 | Add acceptance test for trusting targets by host name | [
{
"change_type": "MODIFY",
"old_path": "java8/src/test/java/com/github/tomakehurst/wiremock/HttpsBrowserProxyAcceptanceTest.java",
"new_path": "java8/src/test/java/com/github/tomakehurst/wiremock/HttpsBrowserProxyAcceptanceTest.java",
"diff": "@@ -190,6 +190,29 @@ public class HttpsBrowserProxyAccep... | Java | Apache License 2.0 | tomakehurst/wiremock | Add acceptance test for trusting targets by host name |
686,981 | 10.06.2020 12:15:40 | -3,600 | bb9153f4f79490b1e58a806c3674a2d1061cc28e | More detailed documentation of WireMock trust store configuration | [
{
"change_type": "MODIFY",
"old_path": "docs-v2/_docs/configuration.md",
"new_path": "docs-v2/_docs/configuration.md",
"diff": "@@ -86,7 +86,13 @@ WireMock can accept HTTPS connections from clients, require a client to present\n.trustStorePassword(\"trustme\")\n```\n-The client certificate in the tr... | Java | Apache License 2.0 | tomakehurst/wiremock | More detailed documentation of WireMock trust store configuration |
686,981 | 11.06.2020 10:09:57 | -3,600 | d96d6838163b19646624a526ba1e62c6b789861a | Add failing acceptance test for generating certs
This test will prove that an http client that trusts a root CA certificate in
WireMock's key store will be able to use WireMock as an HTTPS browser proxy to
any remote service, because WireMock will serve a certificate signed by that
root CA certificate. | [
{
"change_type": "MODIFY",
"old_path": "java8/src/test/java/com/github/tomakehurst/wiremock/HttpsBrowserProxyAcceptanceTest.java",
"new_path": "java8/src/test/java/com/github/tomakehurst/wiremock/HttpsBrowserProxyAcceptanceTest.java",
"diff": "package com.github.tomakehurst.wiremock;\nimport com.git... | Java | Apache License 2.0 | tomakehurst/wiremock | Add failing acceptance test for generating certs
This test will prove that an http client that trusts a root CA certificate in
WireMock's key store will be able to use WireMock as an HTTPS browser proxy to
any remote service, because WireMock will serve a certificate signed by that
root CA certificate. |
686,981 | 11.06.2020 17:51:47 | -3,600 | 7da7bfbbd3773c13ab14343a69e2e3114cf21cb8 | Set SAN on the generated certificates
Modern browsers only trust a certificate if the Subject Alternative Names
(rather than the CN) contains the requested host. | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"diff": "@@ -2,6 +2,11 @@ package c... | Java | Apache License 2.0 | tomakehurst/wiremock | Set SAN on the generated certificates
Modern browsers only trust a certificate if the Subject Alternative Names
(rather than the CN) contains the requested host. |
686,981 | 12.06.2020 10:05:46 | -3,600 | b0b635a7223dd9596645031cb2648cdf14722a14 | Move risky compile options into java8 module
These compile options are needed to make it possible to compile against
`sun.security.tools.keytool`.
Forking the logic in `sun.security.tools.keytool.CertAndKeyGen` would allow
getting rid of most of these options. | [
{
"change_type": "MODIFY",
"old_path": "build.gradle",
"new_path": "build.gradle",
"diff": "@@ -139,14 +139,6 @@ allprojects {\noptions.compilerArgs += '-XDenableSunApiLintControl'\n}\n- compileJava {\n- options.encoding = 'UTF-8'\n- options.fork = true\n- options.forkOptions.executable = 'javac'\n-... | Java | Apache License 2.0 | tomakehurst/wiremock | Move risky compile options into java8 module
These compile options are needed to make it possible to compile against
`sun.security.tools.keytool`.
Forking the logic in `sun.security.tools.keytool.CertAndKeyGen` would allow
getting rid of most of these options. |
686,981 | 12.06.2020 10:06:36 | -3,600 | 72f3f1819f675c93fcd54a331f24e17a9eba9bd5 | Quieten sun api warnings | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"diff": "@@ -40,6 +40,7... | Java | Apache License 2.0 | tomakehurst/wiremock | Quieten sun api warnings |
686,981 | 12.06.2020 10:41:09 | -3,600 | 0bae9f3808f337b046280023142ddcbc5f23b081 | Group related methods together | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"diff": "@@ -52,39 +52,... | Java | Apache License 2.0 | tomakehurst/wiremock | Group related methods together |
686,981 | 12.06.2020 10:46:41 | -3,600 | 87cec52d0638445cffbbf77fc3d480b8acbee77c | Make private methods static
Marks them as not needing to be on this class | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"diff": "@@ -93,7 +93,7... | Java | Apache License 2.0 | tomakehurst/wiremock | Make private methods static
Marks them as not needing to be on this class |
686,981 | 12.06.2020 11:06:11 | -3,600 | e0e085a3071e5d6c2467cc37ffd35d569c1593cc | Move existingCertificateAuthority to be a field | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"diff": "@@ -45,21 +45,... | Java | Apache License 2.0 | tomakehurst/wiremock | Move existingCertificateAuthority to be a field |
686,981 | 12.06.2020 11:16:54 | -3,600 | 78c5b80c044627f04a2f76421674426d05195627 | Move check for existingCertificateAuthority being null up
Start pulling apart `generateCertificate` - it has too
many responsibilities | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"diff": "@@ -165,7 +165... | Java | Apache License 2.0 | tomakehurst/wiremock | Move check for existingCertificateAuthority being null up
Start pulling apart `generateCertificate` - it has too
many responsibilities |
686,981 | 12.06.2020 11:27:57 | -3,600 | 25ff6cbcda9453ccfd9a8bf3b0747c33e0650bfd | Split concerns of `generateCertificate`
Between:
* generating the certificate
* putting it in a keystore and
* returning the default alias if it all goes wrong | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"diff": "@@ -216,24 +21... | Java | Apache License 2.0 | tomakehurst/wiremock | Split concerns of `generateCertificate`
Between:
* generating the certificate
* putting it in a keystore and
* returning the default alias if it all goes wrong |
686,981 | 12.06.2020 11:33:18 | -3,600 | 5399b1331697ea4449230fe9d4444e6a4e04a7c1 | Move CertChainAndKey to upper level | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertChainAndKey.java",
"diff": "+package com.github.tomakehurst.wiremock.http.ssl;\n+\n+import java.security.PrivateKey;\n+import java.security.cert.X509Certificate;\n+\n+class CertCha... | Java | Apache License 2.0 | tomakehurst/wiremock | Move CertChainAndKey to upper level |
686,981 | 12.06.2020 11:40:08 | -3,600 | 0dfa729c4243c7703160a5994db2077540300b01 | Extract a CertificateAuthority class
To encapsulate generating new signed certificates | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateAuthority.java",
"diff": "+package com.github.tomakehurst.wiremock.http.ssl;\n+\n+import sun.security.tools.keytool.CertAndKeyGen;\n+import sun.security.x509.CertificateExte... | Java | Apache License 2.0 | tomakehurst/wiremock | Extract a CertificateAuthority class
To encapsulate generating new signed certificates |
686,981 | 12.06.2020 11:42:38 | -3,600 | 8d11b437824f0ba7ce96cd7c136a94cfd234198e | Simplify CertificateAuthority | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateAuthority.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateAuthority.java",
"diff": "@@ -52,9 +52,8 @@ class CertificateAuthority {\n);\nX509Cert... | Java | Apache License 2.0 | tomakehurst/wiremock | Simplify CertificateAuthority |
686,981 | 12.06.2020 12:08:00 | -3,600 | a672379693b24b6f26dd7bcd059aa1d2e344d513 | Simplify array prepending and exception handling | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateAuthority.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateAuthority.java",
"diff": "@@ -21,6 +21,8 @@ import java.security.cert.CertificateExcep... | Java | Apache License 2.0 | tomakehurst/wiremock | Simplify array prepending and exception handling |
686,981 | 12.06.2020 12:33:30 | -3,600 | 7163aa766e54f65e770a588ec35b8770db00ce31 | Better exception handling logic | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateAuthority.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateAuthority.java",
"diff": "@@ -10,6 +10,7 @@ import sun.security.x509.X500Name;\nimport... | Java | Apache License 2.0 | tomakehurst/wiremock | Better exception handling logic |
686,981 | 12.06.2020 13:56:13 | -3,600 | 84f250839fa60f81059994a62ee50833be5fc5fb | Extract DynamicKeyStore
To encapsulate a Key Store that can add new certificates to itself | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"diff": "@@ -18,13 +18,... | Java | Apache License 2.0 | tomakehurst/wiremock | Extract DynamicKeyStore
To encapsulate a Key Store that can add new certificates to itself |
686,981 | 12.06.2020 14:23:39 | -3,600 | 3c0463a11b22c22ce4a7fa6e787f0e0b09ae6953 | Extract X509KeyStore
To encapsulate a Key Store that returns PrivateKey and X509Certificate[] chains | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"diff": "@@ -30,9 +30,9... | Java | Apache License 2.0 | tomakehurst/wiremock | Extract X509KeyStore
To encapsulate a Key Store that returns PrivateKey and X509Certificate[] chains |
686,981 | 12.06.2020 14:51:18 | -3,600 | 98f2e230f1fe3b00a5108f787cf9c7f03ea6aa87 | Stop generating a new key on every request! | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"diff": "@@ -165,7 +165... | Java | Apache License 2.0 | tomakehurst/wiremock | Stop generating a new key on every request! |
686,981 | 12.06.2020 14:51:42 | -3,600 | d920a915939a52a55f87451e735b962e0bce2e9b | Be more efficient when checking existing keystore | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"diff": "@@ -159,8 +159... | Java | Apache License 2.0 | tomakehurst/wiremock | Be more efficient when checking existing keystore |
686,981 | 12.06.2020 15:05:07 | -3,600 | 899dca33afa7798604da90b78211e84911cd545a | Use stream api as we're in Java 8 | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"diff": "@@ -20,8 +20,8... | Java | Apache License 2.0 | tomakehurst/wiremock | Use stream api as we're in Java 8 |
686,981 | 12.06.2020 15:51:57 | -3,600 | 1c548bfa84a0e74d76a45d294f2e7442dd427342 | Isolate usages of Sun API
We're using the Sun API to generate certificates & to check if a name matches a
certificate. This commit isolates this usage and handles the possibility of the
classes not being present or being altered in an incompatible way, by disabling
the certificate generation behaviour. | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateAuthority.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateAuthority.java",
"diff": "@@ -43,7 +43,9 @@ class CertificateAuthority {\nCertChainAnd... | Java | Apache License 2.0 | tomakehurst/wiremock | Isolate usages of Sun API
We're using the Sun API to generate certificates & to check if a name matches a
certificate. This commit isolates this usage and handles the possibility of the
classes not being present or being altered in an incompatible way, by disabling
the certificate generation behaviour. |
686,981 | 12.06.2020 16:17:26 | -3,600 | 61a6d7d0787896cce4e9a448e616096e1effce36 | Pull deciding whether a key store has a certificate authority up
Means that you know the `CertificateGeneratingX509ExtendedKeyManager` will
always be able to generate certificates. If the sun classes are present, of
course...
Also removed the X509KeyStore interface - it was unnecessary, making unused
methods be implemented and others made public. | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateAuthority.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateAuthority.java",
"diff": "@@ -27,7 +27,7 @@ import static com.github.tomakehurst.wirem... | Java | Apache License 2.0 | tomakehurst/wiremock | Pull deciding whether a key store has a certificate authority up
Means that you know the `CertificateGeneratingX509ExtendedKeyManager` will
always be able to generate certificates. If the sun classes are present, of
course...
Also removed the X509KeyStore interface - it was unnecessary, making unused
methods be implemented and others made public. |
686,981 | 12.06.2020 16:22:33 | -3,600 | 148e585acd00e6a3dd576dbbb003e47d9ff5cc17 | Lose redundant Java prefix | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/DynamicKeyStore.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/DynamicKeyStore.java",
"diff": "@@ -9,10 +9,10 @@ import static java.util.Objects.requireNonNull;\npub... | Java | Apache License 2.0 | tomakehurst/wiremock | Lose redundant Java prefix |
686,981 | 12.06.2020 17:05:17 | -3,600 | 3a634df9e5ebce55c66c2dcc34e628d6427623d4 | Add useful logging if certificates cannot be generated | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"diff": "package com.gi... | Java | Apache License 2.0 | tomakehurst/wiremock | Add useful logging if certificates cannot be generated |
686,981 | 12.06.2020 17:48:10 | -3,600 | 6d9080bea2d5940c7ad9533382defdef45aca1e7 | Document certificate generation
When you provide your own certificate. | [
{
"change_type": "MODIFY",
"old_path": "docs-v2/_docs/proxying.md",
"new_path": "docs-v2/_docs/proxying.md",
"diff": "@@ -150,6 +150,29 @@ As WireMock is here running as a man-in-the-middle, the resulting traffic will\nappear to the client encrypted with WireMock's (configurable) private key &\ncert... | Java | Apache License 2.0 | tomakehurst/wiremock | Document certificate generation
When you provide your own certificate. |
686,981 | 15.06.2020 16:11:55 | -3,600 | 7411a6206951d6e4d0bd1fb5e2ff08bcff019abd | Allow specifying https-keystore without https-port
WireMock can now proxy HTTPS over its HTTP port. This means it's valid to
provide a keystore to configure how that HTTPS is encrypted despite not
listening for HTTPS directly. | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/standalone/CommandLineOptions.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/standalone/CommandLineOptions.java",
"diff": "@@ -171,9 +171,6 @@ public class CommandLineOptions implements Options {... | Java | Apache License 2.0 | tomakehurst/wiremock | Allow specifying https-keystore without https-port
WireMock can now proxy HTTPS over its HTTP port. This means it's valid to
provide a keystore to configure how that HTTPS is encrypted despite not
listening for HTTPS directly. |
686,981 | 15.06.2020 17:51:20 | -3,600 | 396e4c870775f37e4ff2efe80c8e6af91ca7ef8e | Document generating & trusting a root cert on OS/X | [
{
"change_type": "MODIFY",
"old_path": "docs-v2/_docs/proxying.md",
"new_path": "docs-v2/_docs/proxying.md",
"diff": "@@ -169,9 +169,14 @@ A few caveats:\nadd it to your trusted certs then anyone getting hold of it could potentially\nget access to any service you use on the web.\n-TODO: Document how... | Java | Apache License 2.0 | tomakehurst/wiremock | Document generating & trusting a root cert on OS/X |
686,981 | 16.06.2020 12:08:12 | -3,600 | aa08d34ea203e53893ea955e4630759c796e5822 | Document gotchas when running an HTTPS browser proxy | [
{
"change_type": "MODIFY",
"old_path": "docs-v2/_docs/proxying.md",
"new_path": "docs-v2/_docs/proxying.md",
"diff": "@@ -186,6 +186,15 @@ of writing it works using `curl 7.64.1 (x86_64-apple-darwin19.0) libcurl/7.64.1\n```bash\ncurl --proxy-insecure -x https://localhost:8443 -k 'https://www.example... | Java | Apache License 2.0 | tomakehurst/wiremock | Document gotchas when running an HTTPS browser proxy |
686,981 | 16.06.2020 21:34:57 | -3,600 | cf488ba1ffc88b40fa3b4c0be1dcb74cf9c47373 | Use the WireMockClassRule tp setup the test proxy
Don't know why I didn't do that in the first place... | [
{
"change_type": "MODIFY",
"old_path": "java8/src/test/java/com/github/tomakehurst/wiremock/HttpsBrowserProxyAcceptanceTest.java",
"new_path": "java8/src/test/java/com/github/tomakehurst/wiremock/HttpsBrowserProxyAcceptanceTest.java",
"diff": "@@ -77,14 +77,8 @@ public class HttpsBrowserProxyAccepta... | Java | Apache License 2.0 | tomakehurst/wiremock | Use the WireMockClassRule tp setup the test proxy
Don't know why I didn't do that in the first place... |
686,981 | 16.06.2020 21:42:55 | -3,600 | 077fb875401df18f45d33a668f5e0b57675da2e9 | Use a specific proxy for the unusual case
The general case is the one where we don't configure a specific CA keystore | [
{
"change_type": "MODIFY",
"old_path": "java8/src/test/java/com/github/tomakehurst/wiremock/HttpsBrowserProxyAcceptanceTest.java",
"new_path": "java8/src/test/java/com/github/tomakehurst/wiremock/HttpsBrowserProxyAcceptanceTest.java",
"diff": "@@ -35,7 +35,6 @@ import org.eclipse.jetty.client.HttpPr... | Java | Apache License 2.0 | tomakehurst/wiremock | Use a specific proxy for the unusual case
The general case is the one where we don't configure a specific CA keystore |
686,981 | 16.06.2020 21:48:13 | -3,600 | 8bfdf6b2bc6f39ca2f18951d4c06e7e783bb1135 | Add failing test proving a CA keystore is generated | [
{
"change_type": "MODIFY",
"old_path": "java8/src/test/java/com/github/tomakehurst/wiremock/HttpsBrowserProxyAcceptanceTest.java",
"new_path": "java8/src/test/java/com/github/tomakehurst/wiremock/HttpsBrowserProxyAcceptanceTest.java",
"diff": "@@ -46,6 +46,7 @@ import java.io.File;\nimport java.io.I... | Java | Apache License 2.0 | tomakehurst/wiremock | Add failing test proving a CA keystore is generated |
686,981 | 17.06.2020 11:16:24 | -3,600 | 77e8954ea9f1922d29521f0320b0e266c143f415 | Make test proving a CA keystore is generated pass
Code is procedural and needs refactoring | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/jetty94/Jetty94HttpServer.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/jetty94/Jetty94HttpServer.java",
"diff": "package com.github.tomakehurst.wiremock.jetty94;\n+import com.github... | Java | Apache License 2.0 | tomakehurst/wiremock | Make test proving a CA keystore is generated pass
Code is procedural and needs refactoring |
686,981 | 17.06.2020 12:17:21 | -3,600 | b645653abe9e265ab0fa68bbc174a5d81d29135b | Make private files and directories suitably private | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/jetty94/Jetty94HttpServer.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/jetty94/Jetty94HttpServer.java",
"diff": "@@ -45,6 +45,9 @@ import javax.net.ssl.X509ExtendedKeyManager;\nimpo... | Java | Apache License 2.0 | tomakehurst/wiremock | Make private files and directories suitably private |
687,008 | 16.06.2020 16:20:30 | -7,200 | 41365c4b7a9cbb511ee145b0c9686e412886af2f | Added new command line parameters "--jetty-header-request-size" and "--jetty-header-response-size" for set a custom size of headers in Jetty.
"--jetty-header-buffer-size" is deprecated. | [
{
"change_type": "MODIFY",
"old_path": "docs-v2/_docs/running-standalone.md",
"new_path": "docs-v2/_docs/running-standalone.md",
"diff": "@@ -117,9 +117,15 @@ accepting requests.\n`--jetty-accept-queue-size`: The Jetty queue size for accepted requests.\n-`--jetty-header-buffer-size`: The Jetty buffe... | Java | Apache License 2.0 | tomakehurst/wiremock | Added new command line parameters "--jetty-header-request-size" and "--jetty-header-response-size" for set a custom size of headers in Jetty.
"--jetty-header-buffer-size" is deprecated. |
686,981 | 17.06.2020 14:54:11 | -3,600 | f2c0fd5c17a11032c9f446bffaff4120fb743d4c | Exclude classes that use sun classes from JavaDoc
Otherwise can't build on a JDK >= 9 | [
{
"change_type": "MODIFY",
"old_path": "java8/build.gradle",
"new_path": "java8/build.gradle",
"diff": "@@ -28,3 +28,9 @@ compileJava {\noptions.forkOptions.executable = 'javac'\noptions.compilerArgs += '-XDignore.symbol.file'\n}\n+\n+javadoc {\n+ exclude \"**/CertificateAuthority.java\"\n+ exclude ... | Java | Apache License 2.0 | tomakehurst/wiremock | Exclude classes that use sun classes from JavaDoc
Otherwise can't build on a JDK >= 9 |
686,981 | 17.06.2020 14:55:35 | -3,600 | 750bfd246e5af5773c5ef1ca18ae69f64ed1a530 | Make keystore generation work on Windows | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/jetty94/Jetty94HttpServer.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/jetty94/Jetty94HttpServer.java",
"diff": "@@ -42,12 +42,13 @@ import sun.security.x509.X509Key;\nimport javax.... | Java | Apache License 2.0 | tomakehurst/wiremock | Make keystore generation work on Windows |
686,981 | 18.06.2020 09:26:22 | -3,600 | e3d186f0014c5af141795e150ae57635d618b49c | Separate out cert generation logic | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateAuthority.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateAuthority.java",
"diff": "@@ -32,7 +32,7 @@ public class CertificateAuthority {\npriva... | Java | Apache License 2.0 | tomakehurst/wiremock | Separate out cert generation logic |
686,981 | 18.06.2020 09:43:32 | -3,600 | f9188e62cc7f774216b4494596d79d4834cbd653 | Move CA generation onto CertificateAuthority
Breaks dependency on sun.security in Jetty94HttpServer | [
{
"change_type": "MODIFY",
"old_path": "java8/build.gradle",
"new_path": "java8/build.gradle",
"diff": "@@ -31,6 +31,5 @@ compileJava {\njavadoc {\nexclude \"**/CertificateAuthority.java\"\n- exclude \"**/Jetty94HttpServer.java\"\nexclude \"**/SunHostNameMatcher.java\"\n}\n"
},
{
"change_typ... | Java | Apache License 2.0 | tomakehurst/wiremock | Move CA generation onto CertificateAuthority
Breaks dependency on sun.security in Jetty94HttpServer |
686,981 | 18.06.2020 10:31:51 | -3,600 | a51285d5ae3c885a3bedf199ce135020828f0c4c | Reduce duplication in generating certificates | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateAuthority.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateAuthority.java",
"diff": "@@ -26,7 +26,11 @@ import java.security.PrivateKey;\nimport ... | Java | Apache License 2.0 | tomakehurst/wiremock | Reduce duplication in generating certificates |
686,981 | 18.06.2020 13:31:27 | -3,600 | 46be3f186634e6cb91dc29cf7eaaeff6324a2c26 | More like ?: | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"diff": "@@ -43,17 +43,... | Java | Apache License 2.0 | tomakehurst/wiremock | More like ?: |
686,981 | 18.06.2020 17:33:55 | -3,600 | 1b35d702e2efd6bc4ef5daf6117d455129007aad | Simplify & better error handling | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/DynamicKeyStore.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/DynamicKeyStore.java",
"diff": "@@ -12,9 +12,9 @@ public class DynamicKeyStore {\nprivate final X509Ke... | Java | Apache License 2.0 | tomakehurst/wiremock | Simplify & better error handling |
686,981 | 18.06.2020 23:22:43 | -3,600 | e531f2ad122ac0f23f0846214a2b2970002eaf04 | Set up the keystore correctly if unable to generate it
If the keystore cannot be generated, we need to configure the SslContextFactory
using the standard https key store. | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/jetty94/Jetty94HttpServer.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/jetty94/Jetty94HttpServer.java",
"diff": "@@ -164,25 +164,30 @@ public class Jetty94HttpServer extends JettyHt... | Java | Apache License 2.0 | tomakehurst/wiremock | Set up the keystore correctly if unable to generate it
If the keystore cannot be generated, we need to configure the SslContextFactory
using the standard https key store. |
686,981 | 19.06.2020 10:38:50 | -3,600 | 09ba9a7baec111224fd6cd5fa341e37ce6f1482b | Certificate is generated on startup, doesn't need a request to bootstrap it | [
{
"change_type": "MODIFY",
"old_path": "java8/src/test/java/com/github/tomakehurst/wiremock/HttpsBrowserProxyAcceptanceTest.java",
"new_path": "java8/src/test/java/com/github/tomakehurst/wiremock/HttpsBrowserProxyAcceptanceTest.java",
"diff": "@@ -276,10 +276,6 @@ public class HttpsBrowserProxyAccep... | Java | Apache License 2.0 | tomakehurst/wiremock | Certificate is generated on startup, doesn't need a request to bootstrap it |
686,981 | 19.06.2020 12:57:12 | -3,600 | aedfa26ed59583fe77de91a2b1ca4b96c84a326e | Allow downloading the generated CA certificate
Makes it easy to trust it. | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/admin/tasks/GetCaCertTask.java",
"diff": "+package com.github.tomakehurst.wiremock.admin.tasks;\n+\n+import com.github.tomakehurst.wiremock.admin.AdminTask;\n+import com.github.tomakehurst.wire... | Java | Apache License 2.0 | tomakehurst/wiremock | Allow downloading the generated CA certificate
Makes it easy to trust it. |
686,981 | 19.06.2020 13:41:57 | -3,600 | ec8543502b1d1fde0bfbd524dbdf0865a5306c26 | Fix the build
Exclude the GetCaCertTask from the wiremock module, and add it to the java7 module | [
{
"change_type": "MODIFY",
"old_path": "build.gradle",
"new_path": "build.gradle",
"diff": "@@ -194,7 +194,7 @@ subprojects {\n// main.java.srcDir(project(':').sourceSets.main.java.exclude('com/github/tomakehurst/wiremock/matching/EqualToJsonPattern*'))\n// }\n- main.java.srcDir project(':').sourceS... | Java | Apache License 2.0 | tomakehurst/wiremock | Fix the build
Exclude the GetCaCertTask from the wiremock module, and add it to the java7 module |
686,981 | 19.06.2020 15:12:16 | -3,600 | 2943548efd310a9b7328b57b7d34bacf82011e67 | Fix bug with repeat entries in CommandLineOptions toString | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/standalone/CommandLineOptions.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/standalone/CommandLineOptions.java",
"diff": "@@ -538,15 +538,6 @@ public class CommandLineOptions implements Options ... | Java | Apache License 2.0 | tomakehurst/wiremock | Fix bug with repeat entries in CommandLineOptions toString |
686,981 | 19.06.2020 15:34:13 | -3,600 | cf859c8c61cad21d5bc71e5e6bcef94defdcc698 | Log exception rather than returning it in the response
Security risk giving too many details away about the implementation. Not much a
user can do about it unless they are running locally in which case they can see
the logs. | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/admin/tasks/GetCaCertTask.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/admin/tasks/GetCaCertTask.java",
"diff": "@@ -39,13 +39,9 @@ public class GetCaCertTask implements AdminTask {... | Java | Apache License 2.0 | tomakehurst/wiremock | Log exception rather than returning it in the response
Security risk giving too many details away about the implementation. Not much a
user can do about it unless they are running locally in which case they can see
the logs. |
686,981 | 19.06.2020 16:38:56 | -3,600 | f1df36c1729082a3b51ee325c1b324101fe9cb39 | Prove client auth can be configured when https browser proxying | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "java8/src/test/java/com/github/tomakehurst/wiremock/HttpsBrowserProxyClientAuthAcceptanceTest.java",
"diff": "+/*\n+ * Copyright (C) 2011 Thomas Akehurst\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may no... | Java | Apache License 2.0 | tomakehurst/wiremock | Prove client auth can be configured when https browser proxying |
686,981 | 19.06.2020 14:25:50 | -3,600 | 71de20ef825ce9adb04af894a279e7ad326fd182 | Better error message on communication failure when proxying | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/http/ProxyResponseRenderer.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/http/ProxyResponseRenderer.java",
"diff": "@@ -28,20 +28,20 @@ import org.apache.http.entity.ContentType;\nimport org.apa... | Java | Apache License 2.0 | tomakehurst/wiremock | Better error message on communication failure when proxying |
686,981 | 19.06.2020 16:45:51 | -3,600 | 8517e0075df4af10fac8968d73de65092c8ead56 | Use apache host name verifier | [
{
"change_type": "MODIFY",
"old_path": "java8/build.gradle",
"new_path": "java8/build.gradle",
"diff": "@@ -31,5 +31,4 @@ compileJava {\njavadoc {\nexclude \"**/CertificateAuthority.java\"\n- exclude \"**/SunHostNameMatcher.java\"\n}\n"
},
{
"change_type": "ADD",
"old_path": null,
"n... | Java | Apache License 2.0 | tomakehurst/wiremock | Use apache host name verifier |
686,981 | 19.06.2020 19:48:21 | -3,600 | c22af6442575e6cc9c8ea7351df948421de5292d | Log failure to proxy a request | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/http/ssl/CertificateGeneratingX509ExtendedKeyManager.java",
"diff": "@@ -197,6 +197... | Java | Apache License 2.0 | tomakehurst/wiremock | Log failure to proxy a request |
686,981 | 19.06.2020 18:48:16 | -3,600 | 9f20057d493007100b1aac3c0dc57476d976f0a6 | Don't use keytool
It's even more verboten than using sun.security | [
{
"change_type": "MODIFY",
"old_path": "java8/build.gradle",
"new_path": "java8/build.gradle",
"diff": "@@ -22,11 +22,6 @@ compileJava {\n// silences warnings about compiling against `sun` packages\noptions.compilerArgs += '-XDenableSunApiLintControl'\n-\n- // makes it possible to compile against `s... | Java | Apache License 2.0 | tomakehurst/wiremock | Don't use keytool
It's even more verboten than using sun.security |
686,981 | 22.06.2020 11:13:02 | -3,600 | e33b67329451a113d32d21789cba26f90dd7405a | Improve HTTPS browser proxying documentation | [
{
"change_type": "MODIFY",
"old_path": "docs-v2/_docs/configuration.md",
"new_path": "docs-v2/_docs/configuration.md",
"diff": "@@ -114,6 +114,15 @@ WireMock uses the trust store for three purposes:\n// The password to the trust store\n.trustStorePassword(\"trustme\")\n+\n+// When proxying, a key st... | Java | Apache License 2.0 | tomakehurst/wiremock | Improve HTTPS browser proxying documentation |
686,981 | 22.06.2020 11:36:09 | -3,600 | 2910b2e6575fb303f7fff23723cfba3831708892 | Fixes to HTTPS browser proxying documentation | [
{
"change_type": "MODIFY",
"old_path": "docs-v2/_docs/proxying.md",
"new_path": "docs-v2/_docs/proxying.md",
"diff": "@@ -160,7 +160,8 @@ You can provide a key store containing such a private key & certificate yourself\n> for an example of how to build a key & valid self-signed root certificate call... | Java | Apache License 2.0 | tomakehurst/wiremock | Fixes to HTTPS browser proxying documentation |
686,936 | 25.06.2020 12:44:23 | -3,600 | 22346096e4a07670bd22adfb0bcf4ecf881877da | Now reports scenario state mismatch in diff reports | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/core/WireMockApp.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/core/WireMockApp.java",
"diff": "@@ -57,7 +57,7 @@ public class WireMockApp implements StubServer, Admin {\npublic static final Str... | Java | Apache License 2.0 | tomakehurst/wiremock | Now reports scenario state mismatch in diff reports |
686,936 | 25.06.2020 12:46:48 | -3,600 | 31bff0a82e82cd83e4bf339324d3ed94987ef6d5 | Fixed - added ResponseDefinitionBuilder.withTransformerParameters, taking a Map argument | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/client/ResponseDefinitionBuilder.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/client/ResponseDefinitionBuilder.java",
"diff": "@@ -140,6 +140,11 @@ public class ResponseDefinitionBuilder {\nret... | Java | Apache License 2.0 | tomakehurst/wiremock | Fixed #1329 - added ResponseDefinitionBuilder.withTransformerParameters, taking a Map argument |
686,936 | 25.06.2020 12:51:20 | -3,600 | 036c512a86ad2c2d47d840d560b97268f6701069 | Fixed - catch initialisation exceptions in the hostname helper so that they don't escape and cause startup to fail. | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/extension/responsetemplating/helpers/HostnameHelper.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/extension/responsetemplating/helpers/HostnameHelper.java",
"diff": "@@ -21,6 +21,7 @@ import jav... | Java | Apache License 2.0 | tomakehurst/wiremock | Fixed #1327 - catch initialisation exceptions in the hostname helper so that they don't escape and cause startup to fail. |
686,936 | 25.06.2020 13:33:15 | -3,600 | 57be657fa3e51d99f93053aa7a21bcd2ac499542 | Tweaked text and styles of CA cert note on recorder page | [
{
"change_type": "MODIFY",
"old_path": "src/main/resources/assets/recorder/index.html",
"new_path": "src/main/resources/assets/recorder/index.html",
"diff": ".content {\nmargin: auto;\nwidth: 600px;\n- height: 300px;\n+ /*height: 300px;*/\npadding-top: 100px;\nvertical-align: middle;\n}\n+ .ca-cert-... | Java | Apache License 2.0 | tomakehurst/wiremock | Tweaked text and styles of CA cert note on recorder page |
686,936 | 25.06.2020 13:38:32 | -3,600 | a6f0cd1cbb2806facfeff9ed9943bbb631a1519e | Tweaked a style on the recorder page | [
{
"change_type": "MODIFY",
"old_path": "src/main/resources/assets/recorder/index.html",
"new_path": "src/main/resources/assets/recorder/index.html",
"diff": "border: 1px solid black;\npadding: 1em;\nvertical-align: middle;\n- margin-top: 60px;\n+ margin-top: 80px;\ncolor: #898989;\nfont-size: 90%;\n... | Java | Apache License 2.0 | tomakehurst/wiremock | Tweaked a style on the recorder page |
686,936 | 25.06.2020 16:09:39 | -3,600 | ea72c0d12d8600cc922289b302851adea84b9330 | Now prints more specific output in a diff when matchesJsonPath and matchesXPath are used with sub-matches | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/matching/MatchesJsonPathPattern.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/matching/MatchesJsonPathPattern.java",
"diff": "@@ -80,17 +80,29 @@ public class MatchesJsonPathPattern extends Path... | Java | Apache License 2.0 | tomakehurst/wiremock | Now prints more specific output in a diff when matchesJsonPath and matchesXPath are used with sub-matches |
686,936 | 26.06.2020 13:52:19 | -3,600 | 9fdd9e1016f35e0542f5bf08ff25e7cf6cbb9232 | Added ability to match requests by host | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/client/BasicMappingBuilder.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/client/BasicMappingBuilder.java",
"diff": "@@ -69,6 +69,12 @@ class BasicMappingBuilder implements ScenarioMappingBuilder... | Java | Apache License 2.0 | tomakehurst/wiremock | Added ability to match requests by host |
686,936 | 26.06.2020 14:29:03 | -3,600 | c2a56aa7e0a97bd733e98db00b62f02ab97017fb | Added an extra test for host matching | [
{
"change_type": "MODIFY",
"old_path": "src/test/java/com/github/tomakehurst/wiremock/StubbingWithBrowserProxyAcceptanceTest.java",
"new_path": "src/test/java/com/github/tomakehurst/wiremock/StubbingWithBrowserProxyAcceptanceTest.java",
"diff": "@@ -73,6 +73,18 @@ public class StubbingWithBrowserPro... | Java | Apache License 2.0 | tomakehurst/wiremock | Added an extra test for host matching |
686,936 | 27.06.2020 11:54:35 | -3,600 | 8e5659b1e06a3c276c363d5a5dc47a9ba7336df3 | Added ability to match stubs by port number | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/client/BasicMappingBuilder.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/client/BasicMappingBuilder.java",
"diff": "@@ -75,6 +75,12 @@ class BasicMappingBuilder implements ScenarioMappingBuilder... | Java | Apache License 2.0 | tomakehurst/wiremock | Added ability to match stubs by port number |
686,936 | 27.06.2020 12:10:08 | -3,600 | eb4a6950a410fc67e97297d7614cfdbad5f0eec1 | Added ability to match stubs by scheme (protocol) | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/client/BasicMappingBuilder.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/client/BasicMappingBuilder.java",
"diff": "@@ -69,6 +69,12 @@ class BasicMappingBuilder implements ScenarioMappingBuilder... | Java | Apache License 2.0 | tomakehurst/wiremock | Added ability to match stubs by scheme (protocol) |
686,936 | 27.06.2020 13:46:20 | -3,600 | 5234f6340d05cb2f353456339210041d25db390c | Fixed - set the request resulting from processing the filter list as the original request used by the diff reporter, so that the final values are shown in the diff | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "src/main/java/com/github/tomakehurst/wiremock/extension/requestfilter/FilterProcessor.java",
"diff": "+package com.github.tomakehurst.wiremock.extension.requestfilter;\n+\n+import com.github.tomakehurst.wiremock.http.Request;\n+\n+import java.ut... | Java | Apache License 2.0 | tomakehurst/wiremock | Fixed #1342 - set the request resulting from processing the filter list as the original request used by the diff reporter, so that the final values are shown in the diff |
686,936 | 27.06.2020 14:00:37 | -3,600 | 0f0c3d17bc9a27a7ad7d860afededc4c5e9c6015 | Added an option to disable padding on the base64 handlebars helper | [
{
"change_type": "MODIFY",
"old_path": "docs-v2/_docs/response-templating.md",
"new_path": "docs-v2/_docs/response-templating.md",
"diff": "@@ -460,6 +460,10 @@ The `base64` helper can be used to base64 encode and decode values:\nContent to encode\n{{/base64}}\n+{{#base64 padding=false}}\n+Content t... | Java | Apache License 2.0 | tomakehurst/wiremock | Added an option to disable padding on the base64 handlebars helper |
686,936 | 27.06.2020 15:04:06 | -3,600 | cc31bd837dd5aac44637f0c0cab1b18d4ed9623f | Added pickRandom Handlebars helper | [
{
"change_type": "MODIFY",
"old_path": "docs-v2/_docs/response-templating.md",
"new_path": "docs-v2/_docs/response-templating.md",
"diff": "@@ -432,6 +432,24 @@ Random strings of various kinds can be generated:\n{% endraw %}\n+## Pick random helper\n+A value can be randomly selected from a literal l... | Java | Apache License 2.0 | tomakehurst/wiremock | Added pickRandom Handlebars helper |
686,936 | 27.06.2020 21:45:52 | -3,600 | d2b6e29d9587b52b00ed343c00d769ebee980367 | Factored SSL context building code into a utility class | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/jetty94/Jetty94HttpServer.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/jetty94/Jetty94HttpServer.java",
"diff": "package com.github.tomakehurst.wiremock.jetty94;\n-import com.github... | Java | Apache License 2.0 | tomakehurst/wiremock | Factored SSL context building code into a utility class |
686,936 | 29.06.2020 16:18:10 | -3,600 | 673876ce73e30e6c5f8c91a698153ee9073d9bf1 | Added an abstraction for loading KeyStores so that strategies can be plugged in via extensions | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/admin/tasks/GetCaCertTask.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/admin/tasks/GetCaCertTask.java",
"diff": "@@ -4,14 +4,12 @@ import com.github.tomakehurst.wiremock.admin.Admin... | Java | Apache License 2.0 | tomakehurst/wiremock | Added an abstraction for loading KeyStores so that strategies can be plugged in via extensions |
686,936 | 29.06.2020 17:06:32 | -3,600 | 4feaff3c85d1725acad0ddf3ff9b77528634150c | Added ability to pass a KeyStoreSettings instance for the CA cert into the WireMock configuration | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/common/BrowserProxySettings.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/common/BrowserProxySettings.java",
"diff": "package com.github.tomakehurst.wiremock.common;\n+import com.github.tomakehu... | Java | Apache License 2.0 | tomakehurst/wiremock | Added ability to pass a KeyStoreSettings instance for the CA cert into the WireMock configuration |
686,936 | 29.06.2020 17:36:21 | -3,600 | 500ebec94e92f4fc947f2e8dfd4ce9cf4f91d63f | Added support for saving keystore files and switched the Jetty94 browser proxying CA cert setup code to use this | [
{
"change_type": "MODIFY",
"old_path": "java8/src/main/java/com/github/tomakehurst/wiremock/jetty94/SslContexts.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/jetty94/SslContexts.java",
"diff": "@@ -2,8 +2,8 @@ package com.github.tomakehurst.wiremock.jetty94;\nimport com.git... | Java | Apache License 2.0 | tomakehurst/wiremock | Added support for saving keystore files and switched the Jetty94 browser proxying CA cert setup code to use this |
686,936 | 30.06.2020 16:01:04 | -3,600 | 129d00b18f27e0ce62f5c2f0cc1d53bf72968c65 | Fixed - added the ability to set the keystore type and trust store type from the CLI | [
{
"change_type": "MODIFY",
"old_path": "docs-v2/_docs/running-standalone.md",
"new_path": "docs-v2/_docs/running-standalone.md",
"diff": "@@ -41,6 +41,8 @@ certificate to use with HTTPS. The keystore must have a password of\nIf this option isn't used WireMock will default to its own self-signed\ncer... | Java | Apache License 2.0 | tomakehurst/wiremock | Fixed #994 - added the ability to set the keystore type and trust store type from the CLI |
686,936 | 30.06.2020 18:35:42 | -3,600 | d597aafdc3c6821b564781594205212d43d9f835 | Upgraded to Jetty 9.4.30 and Conscrypt 2.2.1 (not the most recent, but the newest that supports < OSX Catalina) | [
{
"change_type": "MODIFY",
"old_path": "build.gradle",
"new_path": "build.gradle",
"diff": "@@ -48,7 +48,7 @@ allprojects {\n],\njava8: [\nhandlebars : '4.2.0',\n- jetty : '9.4.28.v20200408',\n+ jetty : '9.4.30.v20200611',\nguava : '29.0-jre',\njackson : jacksonVersion,\njacksonDatabind: jacksonVers... | Java | Apache License 2.0 | tomakehurst/wiremock | Upgraded to Jetty 9.4.30 and Conscrypt 2.2.1 (not the most recent, but the newest that supports < OSX Catalina) |
686,936 | 02.07.2020 19:00:10 | -3,600 | e2809ebe6a5bca524bf624b0039588ffae7f7be4 | Moved the writable key store source (used when browser proxying HTTPS) to the java8 sources to avoid breaking older Android builds in the java7 build with use of Path, Paths etc. from java.nio | [
{
"change_type": "RENAME",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/common/ssl/FileOrClasspathKeyStoreSource.java",
"new_path": "java8/src/main/java/com/github/tomakehurst/wiremock/jetty94/WritableFileOrClasspathKeyStoreSource.java",
"diff": "-package com.github.tomakehurst.wiremoc... | Java | Apache License 2.0 | tomakehurst/wiremock | Moved the writable key store source (used when browser proxying HTTPS) to the java8 sources to avoid breaking older Android builds in the java7 build with use of Path, Paths etc. from java.nio |
686,936 | 07.07.2020 10:27:51 | -3,600 | 1b48c423ef5c7ce34382da021af943a2689a752c | Fixed - raised default Jetty stop timeout to prevent unbounded thread creation | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/jetty9/JettyHttpServer.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/jetty9/JettyHttpServer.java",
"diff": "@@ -163,7 +163,7 @@ public class JettyHttpServer implements HttpServer {\nprotected vo... | Java | Apache License 2.0 | tomakehurst/wiremock | Fixed #1346 - raised default Jetty stop timeout to prevent unbounded thread creation |
686,936 | 08.09.2020 11:13:36 | -3,600 | 278ab58e535d7d80d2dcab9183e90b9a2c9fd50e | Fixed - removed memoization of string value pattern matches, as this is severly detrimental to performance for some workloads and causes unbounded heap growth | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/matching/EqualToJsonPattern.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/matching/EqualToJsonPattern.java",
"diff": "@@ -36,7 +36,7 @@ import static com.github.tomakehurst.wiremock.common.Json.... | Java | Apache License 2.0 | tomakehurst/wiremock | Fixed #1375 - removed memoization of string value pattern matches, as this is severly detrimental to performance for some workloads and causes unbounded heap growth |
686,936 | 10.09.2020 15:18:16 | -3,600 | 56d7a087a3d28685c8d797636e8e5e263fbfcff3 | Added memoization to match results during request -> stub near miss calculation | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/verification/NearMissCalculator.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/verification/NearMissCalculator.java",
"diff": "@@ -73,7 +73,7 @@ public class NearMissCalculator {\nList<ServeEvent... | Java | Apache License 2.0 | tomakehurst/wiremock | Added memoization to match results during request -> stub near miss calculation |
686,936 | 24.09.2020 20:31:25 | -3,600 | 2b7f786bf3302df8f1654d53eeb7607aa2304269 | Removed openjdk7 from the Travis build matrix | [
{
"change_type": "MODIFY",
"old_path": ".travis.yml",
"new_path": ".travis.yml",
"diff": "@@ -4,7 +4,6 @@ dist: trusty\njdk:\n- oraclejdk8\n- - openjdk7\n- openjdk8\ninstall:\n@@ -12,5 +11,5 @@ install:\n- JAVA_HOME=$(jdk_switcher home openjdk8) ./gradlew classes testClasses -x generateApiDocs\nscri... | Java | Apache License 2.0 | tomakehurst/wiremock | Removed openjdk7 from the Travis build matrix |
686,936 | 25.09.2020 11:36:06 | -3,600 | f96f18a98af21621404325c22d5025c3a5196c28 | Removed test dependencies from generated Maven POM | [
{
"change_type": "MODIFY",
"old_path": "build.gradle",
"new_path": "build.gradle",
"diff": "@@ -303,6 +303,10 @@ task writeThinJarPom {\nartifactId = jar.baseName\n}\nproject(pomInfo)\n+ }.whenConfigured { MavenPom pom ->\n+ pom.dependencies.removeAll { dependency ->\n+ dependency.scope == 'test'\n+... | Java | Apache License 2.0 | tomakehurst/wiremock | Removed test dependencies from generated Maven POM |
686,950 | 02.10.2020 10:26:01 | -7,200 | 788c0cff96b3cfb8d4d3b974c4090be9783a0f90 | fixing typo as requested in | [
{
"change_type": "MODIFY",
"old_path": "docs-v2/_docs/record-playback.md",
"new_path": "docs-v2/_docs/record-playback.md",
"diff": "@@ -386,7 +386,7 @@ If you want to always match request bodies with `equalTo` case-insensitively, re\n```json\n\"requestBodyPattern\" : {\n\"matcher\": \"equalTo\",\n- ... | Java | Apache License 2.0 | tomakehurst/wiremock | fixing typo as requested in #1382 (#1387) |
686,976 | 12.10.2020 11:43:49 | -7,200 | f96383e461db2ef6234fc87fd082d1ced21430c6 | updates httpclient version to 4.5.13 | [
{
"change_type": "MODIFY",
"old_path": "build.gradle",
"new_path": "build.gradle",
"diff": "@@ -62,7 +62,7 @@ dependencies {\ncompile \"com.fasterxml.jackson.core:jackson-core:$versions.jackson\",\n\"com.fasterxml.jackson.core:jackson-annotations:$versions.jackson\",\n\"com.fasterxml.jackson.core:ja... | Java | Apache License 2.0 | tomakehurst/wiremock | updates httpclient version to 4.5.13 (#1393)
Co-authored-by: Kacper Jonczyk <kacper.jonczyk@ocado.com> |
686,936 | 07.01.2021 17:34:44 | 0 | 4395c283d2e0b199eae03e20b80a571866c4573c | Added link to mock REST API tutorial on mocklab.io | [
{
"change_type": "MODIFY",
"old_path": "docs-v2/external-resources/index.md",
"new_path": "docs-v2/external-resources/index.md",
"diff": "@@ -112,3 +112,5 @@ CDN:<br>\n## MockLab\n[Build a Paypal sandbox for load testing in 10 minutes](https://www.mocklab.io/blog/build-a-paypal-sandbox-for-load-test... | Java | Apache License 2.0 | tomakehurst/wiremock | Added link to mock REST API tutorial on mocklab.io |
687,059 | 19.04.2021 06:18:47 | 25,200 | ff6108ef09fc0406e70a03e6ce34e2274a1d5140 | Add Typescript client to external resources | [
{
"change_type": "MODIFY",
"old_path": "docs-v2/external-resources/index.md",
"new_path": "docs-v2/external-resources/index.md",
"diff": "@@ -63,6 +63,9 @@ Python client by Cody Lee:<br>\nNodeJS wrapper:<br>\n[https://www.npmjs.com/package/wiremock](https://www.npmjs.com/package/wiremock)\n+NodeJS +... | Java | Apache License 2.0 | tomakehurst/wiremock | Add Typescript client to external resources |
686,936 | 20.04.2021 11:36:07 | -3,600 | 64294f0a2a39c3eb308734d5bb73b6c6e16dc49a | Upgraded Jetty to 9.4.40 and restored MITM proxying by creating a 3rd Jetty connector (associated with the CA-based SSL factory) with a subclass of Jetty's ConnectHandler, configured to route requests to the new connector instead of the target host:port | [
{
"change_type": "MODIFY",
"old_path": "build.gradle",
"new_path": "build.gradle",
"diff": "@@ -35,7 +35,8 @@ repositories {\ndef jacksonVersion = '2.11.0'\ndef versions = [\nhandlebars : '4.2.0',\n- jetty : '9.4.30.v20200611',\n+// jetty : '9.4.34.v20201102', // Last working version\n+ jetty : '9.4... | Java | Apache License 2.0 | tomakehurst/wiremock | Upgraded Jetty to 9.4.40 and restored MITM proxying by creating a 3rd Jetty connector (associated with the CA-based SSL factory) with a subclass of Jetty's ConnectHandler, configured to route requests to the new connector instead of the target host:port |
686,936 | 22.04.2021 16:27:37 | -3,600 | 8ff728ed4d2c775b2664cb81e72fe7984a813917 | Removed some redundant imports that also break Java 11 compilation | [
{
"change_type": "MODIFY",
"old_path": "src/main/java/com/github/tomakehurst/wiremock/common/ssl/KeyStoreSource.java",
"new_path": "src/main/java/com/github/tomakehurst/wiremock/common/ssl/KeyStoreSource.java",
"diff": "package com.github.tomakehurst.wiremock.common.ssl;\nimport com.github.tomakehur... | Java | Apache License 2.0 | tomakehurst/wiremock | Removed some redundant imports that also break Java 11 compilation |
686,936 | 22.04.2021 17:46:55 | -3,600 | e9d2e10ba54a43a5df3df86c5a193fe140f51cec | Switched to using a GitHub action to switch Node versions | [
{
"change_type": "MODIFY",
"old_path": ".github/workflows/build-and-test.yml",
"new_path": ".github/workflows/build-and-test.yml",
"diff": "@@ -29,8 +29,10 @@ jobs:\ndistribution: 'adopt'\n- name: Grant execute permission for gradlew\nrun: chmod +x gradlew\n- - name: Set up NVM\n- run: rm -rf ~/.nvm... | Java | Apache License 2.0 | tomakehurst/wiremock | Switched to using a GitHub action to switch Node versions |
686,936 | 22.04.2021 17:47:45 | -3,600 | 24d45551531130c4c9913840adc5e21d56441ea0 | Limit the build to just JDK 8 for the time being (we know 11 has failing tests) | [
{
"change_type": "MODIFY",
"old_path": ".github/workflows/build-and-test.yml",
"new_path": ".github/workflows/build-and-test.yml",
"diff": "@@ -15,7 +15,7 @@ jobs:\nfail-fast: false\nmatrix:\nos: [ubuntu-latest, macos-latest, windows-latest]\n- jdk: [8, 11]\n+ jdk: [8]\nruns-on: ${{ matrix.os }}\nen... | Java | Apache License 2.0 | tomakehurst/wiremock | Limit the build to just JDK 8 for the time being (we know 11 has failing tests) |
686,936 | 22.04.2021 18:03:59 | -3,600 | e6de9743446d9b3a6d3b389cb8db7cad76d94e4c | Added some more tolerance in HTTPS tests for varying exception classes thrown, since this varies between JVM versions (and even patch versions of JDK 8) | [
{
"change_type": "MODIFY",
"old_path": "src/test/java/com/github/tomakehurst/wiremock/HttpsAcceptanceTest.java",
"new_path": "src/test/java/com/github/tomakehurst/wiremock/HttpsAcceptanceTest.java",
"diff": "@@ -43,6 +43,7 @@ import org.junit.Test;\nimport org.junit.rules.ExpectedException;\nimport ... | Java | Apache License 2.0 | tomakehurst/wiremock | Added some more tolerance in HTTPS tests for varying exception classes thrown, since this varies between JVM versions (and even patch versions of JDK 8) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.