toJson() method in ByteBufBsonDocument throws exception if called more than once

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 0.8
    • Affects Version/s: 3.1.0
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      toString() (toJson()) method in ByteBufBsonDocument object breaks this object, therefore it is impossible to use more than one CommandListener. If event.getCommand().toJson() in second listener is called than an "org.bson.BsonSerializationException: While decoding a BSON document 4 bytes were required, but only 0 remain" will be occured.

              Assignee:
              Jeffrey Yemin
              Reporter:
              Anton Musikhin
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: