mongoc_uri_unescape() silently fails on invalid percent-encoding

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.7.0
    • Affects Version/s: 1.5.1
    • Component/s: uri
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Hannes Magnusson (Inactive)
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: