Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-11148

Bad use of scmAccounts params for api/users/update

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.1
    • Fix Version/s: 7.4
    • Component/s: Web
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      The current implementation of the update of a user's scmAccount is wrong. We are passing a list of scmAccounts separated by comma, which is not supported. The WS expects an array of scmAccounts in the following format:

      scmAccounts: firstAccount
      scmAccounts: secondAccount
      

      This bug was introduced by commit da198c77 that attempted to fix an issue where it was not possible to remove all scm accounts of an existing user via the UI.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gregoire.aubert Gregoire Aubert
              Reporter:
              gregoire.aubert Gregoire Aubert
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: