MockServer v5.9.0 Release Notes

Release Date: 2020-02-01 // about 4 years ago
  • โž• Added

    • โž• added stopAsync method to ClientAndServer to allow stop without waiting
    • ๐Ÿšš log events for UPDATED_EXPECTATION and REMOVED_EXPECTATION
    • โšก๏ธ ability to update existing expectation by id
    • hot re-loading of expectation initialiser file
    • โž• addition configuration for web socket client event loop size
    • โž• addition configuration for action handler thread pool size
    • ๐Ÿ”ฆ exposed request raw bytes to object callbacks (allows forwarded requests body parsing that is inconsistent with Content-Type header)
    • โž• added support to delay socket closure using connection options
    • โž• added support to control trusted certificate authorities (trust store) for proxied & forwarded requests
    • โž• added support for two-way TLS (mTLS), also called client authentication
    • ๐Ÿ‘ now sends TLS X509 certificate from proxy (i.e. support forward client authentication / mTLS)
    • โž• added ability to dynamically create local unique Certificate Authority (CA) X.509 and Private Key to improve securiy of clients trusting the CA

    ๐Ÿ”„ Changed

    • ๐ŸŽ performance improvements for header and cookie handling
    • ๐Ÿ‘Œ improved JSON validation errors by adding link to OpenAPI Specification
    • โœ‚ removed duplicate packages between modules to prepare for java modules
    • ๐Ÿ”ง caught Jackson configuration exception to improve resilience with other Jackson versions in classpath
    • ๐Ÿ— moved Junit4 to separate module to reduce size of jar-with-dependencies, simplify code and increase build speed
    • enabled case insensitive matching for regex matches
    • ๐Ÿ‘Œ improved documentation (i.e. on website)
    • switched from Bouncy Castle to JDK for certificate and private key generation

    ๐Ÿ›  Fixed

    • ๐Ÿ›  fixed error where ClientAndServer does fully wait for client to stop
    • ๐Ÿ›  fixed ability to specific a log level of OFF
    • ๐Ÿ›  fixed bug with keystore type configuration not being used in all places
    • โž• added file locking and jvm locking for expectation persistence file to avoid file corruption
    • ๐Ÿ›  fixed verification incorrectly matching verifier non-empty bodies against empty request bodies
    • stopped response callbacks for proxied requests blocking threads
    • ๐Ÿ›  fixed bug that caused JSON bodies in specified expectations as raw JSON to ignore empty arrays and empty strings

    ๐Ÿ”’ Security

    • โšก๏ธ updated tomcat (used in integration tests) to version without vulnerabilities