Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODE-216

"Unable to find document" if base64 _id (subtype 04) contains certain characters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 0.3.0
    • Fix Version/s: 0.4.0
    • Component/s: Shell
    • Labels:
      None
    • Environment:
      Windows 10, VSCode 1.51.1
    • Documentation Changes:
      Not Needed

      Description

      Problem Description

      All documents (pic1.png) containing a + in the base64 encoded _id cannot be loaded. The error message is

      Unable to find document: {"$binary": {"base64": ... , "subType":"04" }}

      see pic2.png

      Other documents without + in the _id can be loaded.
      Compass can load and show all of the documents.

      Steps to Reproduce

      1. Have a MongoDb configured with binary subtype 4 ids (UUID).
      2. Have documents where the base64 encoded _ids contain +
      3. Try to load them with the MongoDB extension in VSCode

      Expected Results

      The documents are loaded and shown like the documents without + in the base64 _id.

      Actual Results

      Some documents cannot be loaded and shown. An error message is shown in VSCode (pic2.png).

      Additional Notes

        Attachments

        1. pic2.png
          pic2.png
          9 kB
        2. pic1.PNG
          pic1.PNG
          11 kB

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            michael.werlitz@gmail.com Michael Werlitz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: