Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-2832

Config constructor is unsafe if the config contains a ConfigDictField

    Details

    • Type: Bug
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: pex_config
    • Labels:
      None
    • Templates:
    • Team:
      Data Access and Database

      Description

      The constructor for Config accepts keywords arguments to set fields. That is a wonderful feature (and one I did not know about until today). In many cases it appears to be safe, in that providing an invalid field name results in an exception. However, I have found a situation where data provided for an invalid field name is silently ignored: when the Config contains a single field that is a ConfigDictField. The attached file provides a demo.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rowen Russell Owen
              Watchers:
              Jim Bosch, John Swinbank, Kian-Tat Lim, Russell Owen
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel