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

Misleading message when no component parameter are set in some WS

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Web API
    • Labels:

      Description

      In every WS that has componentId and componentKey parameter, when none of them are provided the following message is returned :

      Either 'id' or 'key' must be provided, not both
      

      It's misleading, as no parameter has be given. The error message should be updated to something like :

      Either 'id' or 'key' must be provided
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              julien.lancelot Julien Lancelot
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: