Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1987

mongoc_uri_unescape() silently fails on invalid percent-encoding

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.0
    • Affects Version/s: 1.5.1
    • Component/s: uri
    • Labels:
      None

      mongodb/specifications#105 was opened to address an ambiguity with the connection string spec and require "%" characters in the username or password component of a URI to be escaped.

      While examining how libmongoc handles unescaping, I realized that mongoc_uri_unescape() appears to fail silently if it encounters an invalid escape sequence. Should libmongoc at least log a warning before it returns NULL in this case?

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: