setParameter command has confusing behavior when setting multiple parameters.

XMLWordPrintableJSON

    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The result of a successful setParameter with one parameter to set is

      { was: <old value>, ok: 1 }

      . However, if you set two parameters, you get back

      { was: <first old value>, was: <second old value>, ok: 1}

      , which many client drivers seem to turn into

      { was: <one of the old values>, ok: 1}

      .

      Further, if you pass multiple parameters to setParameter, and one of the sets fails, some of the parameters will have been set and some not, and the response will contain a "was" field for one of the successful sets, ok: 0 and errmsg of "not allowed to change [<first encountered unsettable field>]" or some such.

            Assignee:
            DO NOT USE - Backlog - Platform Team
            Reporter:
            Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: