Skip to content

Report Generation Fails Due to MongoDB Payload Document Size Limit (16MB) #95

@daronwolff

Description

@daronwolff

Description:

I'm encountering an issue while working on a security assessment report containing 16 vulnerabilities and several images. When I attempt to add a new image, the report generation fails entirely.

Based on the error message, it appears the payload exceeds MongoDB's maximum BSON document size of 16,793,600 bytes (16MB).

Any suggestion?

LOG:

Caused by: org.bson.BsonMaximumSizeExceededException: Payload document size is larger than maximum of 16793600.
    at com.mongodb.internal.connection.BsonWriterHelper.writePayload(BsonWriterHelper.java:68)
    at com.mongodb.internal.connection.CommandMessage.encodeMessageBodyWithMetadata(CommandMessage.java:147)
    at com.mongodb.internal.connection.RequestMessage.encode(RequestMessage.java:138)
    at com.mongodb.internal.connection.CommandMessage.encode(CommandMessage.java:61)
    at com.mongodb.internal.connection.InternalStreamConnection.sendAndReceive(InternalStreamConnection.java:247)
    ...
Image

Note that the images are attached using the Text Editor image upload feature which adds it as base64, example:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions