Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-966

Saving a dynamic value causes stackoverflow

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.0
    • Serialization
    • None

    Description

      I have a model that has a attribute like:

           public Dictionary<string, dynamic> Values { get; set; }

      the Values attribute typically accepts objects like:

      [ 
      	    { "24352435234": 2343 }   // Number
      	    { "24352435234": "Henry" } // Text
      	    { "24352435234": DateTime }  // Date
      	    { "23452435234": "23452345243" } // Single select box
      	    { "23452435234": ["23452345243", "2345234234"] } // Multi-select box ---- this doesn't work currently
      	    { "23452435234": "SW-132" } // Id
      	 ]

      all works fine until I do the Multi-Select case and then it does a stackoverflow and totally kills the .net process. Heres a quick video of the post/fail/errors http://www.screencast.com/t/MQG7hdvOcr

      Using 1.9 driver, it saves fine but on de-serialization it fails.

      • Note: I'm using the nightly 3.0.0-build-0052 *

      Attachments

        Activity

          People

            Unassigned Unassigned
            amcdnl Austin McDaniel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: