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

WS API should return HTTP 401 when user/password are not valid

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.12
    • Fix Version/s: 3.0
    • Component/s: Plugin API
    • Labels:
      None

      Description

      Currently WS API return an empty result (i.e <resources></resources>) when the provided user/pass haven't access to the requested URL.
      This forces the WS API clients at all times to check that the response is valid (contains data).

      A good solution would be to return 401 when user has no access to the URL.

        Attachments

          Activity

            People

            Assignee:
            fabemn OLD - Fabrice Bellingard
            Reporter:
            amuniz Antonio Manuel Muñiz Martín
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: