BSON 4.6.0 breaks saving of BSON::Binary fields

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Sven Riedel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: