You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the feature request
Increase max mock response size when mockserver is used with Jackson 2.15.
What you are trying to do
I'm trying to use mockserver inside a project which uses Jackson 2.15.2 dependency. This overrides Jackson version 2.14.2 from the mockserver project.
Implementation of jackson-core#863 sets upper limit on maximum length of String values read from input. Default limit is 20M since Jackson version 2.15.1.
Because of this new limit, mockserver fails if >20M mock response is used:
java.lang.IllegalArgumentException: com.fasterxml.jackson.core.exc.StreamConstraintsException: String length (20051112) exceeds the maximum length (20000000)
at org.mockserver.client.MockServerClient.sendRequest(MockServerClient.java:403)
at org.mockserver.client.MockServerClient.sendRequest(MockServerClient.java:429)
at org.mockserver.client.MockServerClient.upsert(MockServerClient.java:1494)
at org.mockserver.client.ForwardChainExpectation.respond(ForwardChainExpectation.java:84)
The solution you'd like
Updgrade mockserver's Jackson dependency to 2.15 and configure applicable ObjectFactory (or factories) to allow larger messages e.g. using Integer.MAX_VALUE as limit.
Describe the feature request
Increase max mock response size when mockserver is used with Jackson 2.15.
What you are trying to do
I'm trying to use mockserver inside a project which uses Jackson 2.15.2 dependency. This overrides Jackson version 2.14.2 from the mockserver project.
Implementation of jackson-core#863 sets upper limit on maximum length of String values read from input. Default limit is 20M since Jackson version 2.15.1.
Because of this new limit, mockserver fails if >20M mock response is used:
The solution you'd like
Updgrade mockserver's Jackson dependency to 2.15 and configure applicable ObjectFactory (or factories) to allow larger messages e.g. using Integer.MAX_VALUE as limit.
Example code: FasterXML/jackson-core#863 (comment).
Describe alternatives you've considered
As temporary solution I have pinned Jackson dependency to version 2.14.3.
The text was updated successfully, but these errors were encountered: