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

Attempt to clean/normalize values collected in mongoc-metadata

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.5.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In some parts of the metadata collection process, we do nothing to "sanitize" the strings we collect. For example, the values may have quotes around them. We also don't do much to make sure the values are whitespace trimmed. Hannes brought this up in a code review for the linux distro scanner, so I'm opening a ticket for it.

      I think we should either:

      a) Decide not to do this, and just put the responsibility on whoever is analyzing this data.

      b) Do this as a separate step in the mongoc-metadata code. If we go with this option we should define exactly what kind of sanitizing we want to do here.

            Assignee:
            bjori Hannes Magnusson (Inactive)
            Reporter:
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: