Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1953

Clarify exception message when hash key serialization to bson fails

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-4.6.0
    • Affects Version/s: None
    • Component/s: BSON, Dev Exp
    • None
    • Minor Change

      When serialization of hash key to bson fails, the exception message is not indicating that the affected object is the key. In the event of data corruption, one could assume the value is corrupted, but in reality the key may be corrupted.

      Additionally, hash keys must not have embedded nulls. When they do, the exception message states the "string is not valid utf-8" which is not strictly correct and adds to confusion.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: