TimeOnly serializer introduced in CSHARP-3717 breaks compatibility with documents serialized by previous driver versions

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 3.6.0
    • Affects Version/s: None
    • Component/s: Serialization
    • None
    • 🔵 Done
    • Fully Compatible
    • Dotnet Drivers
    • Needed
    • Hide

      In version 3.0.0 breaking changes section, we need to add that using the BsonType.Document representation for TimeOnly is compatible with the older versions of the driver. 

      Show
      In version 3.0.0 breaking changes section, we need to add that using the BsonType.Document representation for TimeOnly is compatible with the older versions of the driver. 
    • None
    • None
    • None
    • None
    • None
    • None

      After upgrading to the latest major version of mongodb.driver, we discovered a breaking change that is not documented in the Release Notes or the Breaking Changes section.

      Issue:
      As part of CSHARP-3717, a new serializer for the TimeOnly type was introduced. However, documents serialized using the previous driver version can no longer be deserialized by the new version. This introduces a breaking change in backward compatibility, but there is no mention of this in the Release Notes or Breaking Changes documentation.

      Expected:

      • The breaking change should be clearly documented in either the "How to Upgrade" guide or the "Breaking Changes" section.
      • Alternatively, the new serializer should provide a backward compatibility mode that allows it to correctly read documents serialized by the previous version.

            Assignee:
            Ferdinando Papale
            Reporter:
            Алексей Л.
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: