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

Check minimum length of search parameters in WS

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0
    • Component/s: Web API
    • Labels:

      Description

      Currently most of the WS with a search parameter (q, s, ...) that has a minimum length is not very well handled.
      Some of them answer with a 400 http error, other with empty result, some are documented others not.

      Here is a list of WS with those problems :

      • api/users/search : empty result / no doc
      • api/components/suggestions : empty result
      • api/components/search_projects : empty result / no doc
      • api/organizations/search_members : error msg / no doc
      • api/rules/search : has result but probably wrong / no doc
      • api/permissions/groups : error msg / no doc
      • api/permissions/users : error msg
      • api/permissions/template_groups : error msg
      • api/permissions/template_users : error msg
      • GOV : api/views/search : error msg / no doc

      Without problems :

      • api/components/tree : perfect, has error and doc
      • api/measures/component_tree : perfect, has error and doc

      Ui problem :

      • api/projects/search : result seems correct but limited in the ui
      • api/issues/tags : result seems correct but limited in the ui

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              guillaume.jambet Guillaume Jambet (Inactive)
              Reporter:
              gregoire.aubert Gregoire Aubert
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: