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

Mongosh client in Compass renders Long numbers incorrectly

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical - P2 Critical - P2
    • None
    • 1.36.2
    • Embedded Shell
    • OS: macOS
      node.js / npm versions: I don't know which are being used by compass
      Additional info:
    • 3

    Description

      Problem Statement/Rationale

      When querying a collection with a document with a Int64, from the mongosh client in compass with the following example query:

      db.xp.findOne({"not_the_affected_field": "not the affected text"}) 

       

      I get my document returned. However the last two digits of the numbers in that document (mostly long ids, 60 bit) are returned as zeros. Comparing this to the result from a bash mongosh client, the numbers are returned and shown as Long("1234512345"),

      Please be sure to attach relevant logs with any sensitive data redacted.{}

      Steps to Reproduce

      Create collection

      Add document with a field with a long number (more than 32 bit) in it

      Query for that document by another field

      Last two digits are shown as 0s

      example from above: 1234512300

      Expected Results

      What do you expect to happen?

      Either: Long("1234512345") or 1234513245

      Actual Results

      What do you observe is happening?

      1234512300

      Additional Notes

      Any additional information that may be useful to include.

      Server is docker server image latest as of yesterday.

      Attachments

        Activity

          People

            Unassigned Unassigned
            strau0106@gmail.com strau 0106
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: