Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-7749

Compass does not show any collection contents when stored BSON date exceeds JS Date range

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.42.5
    • Affects Version/s: 1.42.2
    • Component/s: CRUD
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 1
    • Iteration Wendiceratops, Iteration Xiaosaurus
    • Not Needed
    • Developer Tools

      mongosh displays Invalid Date, Compass currently throws an exception and is unable to render collection contents entirely.

      Example Python script to generate a document with an invalid date:

      import pymongo
      import bson
      client = pymongo.MongoClient('localhost', 27017)
      client.test.coll.insert_one(bson.raw_bson.RawBSONDocument(b'\x10\x00\x00\x00\x09\x61\x00\xff\xff\xff\xff\xff\xff\xff\x7f\x00'))
      

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: