Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4822

BSON 4.6.0 breaks saving of BSON::Binary fields

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      Ruby 2.6.3, BSON 4.6.0, Mongo 2.11

      I have a field in an mongoid model that is declared as a binary:

      field :screenshot, type: BSON::Binary 

      With BSON 4.5.0 and Mongo 2.10, I can assign any data to this field and save it.

      After updating to BSON 4.6.0 I get encoding errors:

            Encoding::UndefinedConversionError:
             "\xC3" from ASCII-8BIT to UTF-8

      Did the proper procedure to store binaries change with the update?

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            sven.riedel@givve.com Sven Riedel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: