It looks like Jackson 2.15 introduced a max length for a single string
value inside of the json document which defaults to 20MB.

It can be configured on the ObjectMapper's factory [1] like:

objectMapper.getFactory().setStreamReadConstraints(StreamReadConstraints.builder().maxStringLength(40000000).build()));

If we want to make this configurable, we'd probably have to expose a
property in any controller-service/processor that does json parsing with an
ObjectMapper.

[1]
https://github.com/spring-projects/spring-boot/issues/34709#issuecomment-1482939940

On Mon, Sep 18, 2023 at 4:23 PM Gregory M. Foreman <
[email protected]> wrote:

> Yes
>
> Sent from my iPhone
>
> On Sep 18, 2023, at 2:29 PM, Greene (US), Geoffrey N via users <
> [email protected]> wrote:
>
> 
>
> Is this what you are referring to? 20MB string values vs 20 MB document
> size…
>
>
>
> https://github.com/FasterXML/jackson-core/issues/1082
>
>
>
>
>
> *From:* Joe Witt <[email protected]>
> *Sent:* Monday, September 18, 2023 2:25 PM
> *To:* [email protected]
> *Subject:* [EXTERNAL] Re: Large json string field errors
>
>
>
> EXT email: be mindful of links/attachments.
>
>
>
>
> Greg
>
>
>
> Can you share details on how you're seeing this limit?  Is there a
> resulting stack trace or other output for it in the nifi-app.log?  What
> version of NiFi are you on?
>
>
>
> Thanks
>
>
>
> On Mon, Sep 18, 2023 at 11:19 AM Gregory M. Foreman <
> [email protected]> wrote:
>
> Hello:
>
> It appears Jackson recently set a 20mb upper boundary on json string field
> length.  Is there a way to remove/override this limit in Nifi?
>
> Thanks,
> Greg
>
>

Reply via email to