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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.4.0
    • Affects Version/s: 0.3.0
    • Component/s: Embedded Shell
    • None
    • Environment:
      Windows 10, VSCode 1.51.1
    • Not Needed

      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

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

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

              Created:
              Updated:
              Resolved: