ExportXMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • bson-7.3.4
    • Affects Version/s: None
    • Component/s: None
    • 2
    • 2
    • Not Needed
    • None
    • 0.5
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Expected Behavior

      As a js-bson user
      I expect correct size calculations
      When calling calculateObjectSize with -0 as an input

      Actual Behavior and Impact

      • When -0 is passed to calculateObjectSize it is treated as an int32 instead of a double
      • No known customer issues, public reports of the problem other than the incoming PR.

      Dependencies

      • None

      Risks/Unknowns

      • None

      Acceptance Criteria

      Implementation Requirements

      • calculateObjectS_ize_ should calculate -0 as a double instead of an int32

      Testing Requirements

      • Unit tests should be added to cover the case in which -0 yields invalid size calculations from calculateObjectSize

      Documentation Requirements

      • Release note crediting the user who submitted the fix

      Follow Up Requirements

      • None

       

            Assignee:
            Sergey Zelenov
            Reporter:
            Pavel Safronov
            Sergey Zelenov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: