SerializerFinder wrapping serializer into Upcast/Downcast serializer breaks some expressions translation

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 3.7.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Fully Compatible
    • Dotnet Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      While adding serializer to serializer map Driver checks if the node.Type and serializer.ValueType is exactly the same, if not - it will wrap the serializer with Upcast/Downcast serializer. This behavior could cause a problems when we wrapping a serializer and then later we will get the serializer from the map with assumption that it should be for example IBsonDictionarySerializer.

            Assignee:
            Oleksandr Poliakov
            Reporter:
            Oleksandr Poliakov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: