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

Open a security hotspot in one IDE

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.6
    • Component/s: Security Hotspots
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Description

      On the "Security Hotspots" page, a new button is added between "Add Comment" and "Get Permalink".

      On click:

      • The browser tries to send discovery requests to SonarLint servers on localhost, on ports 64120-64130
      • If none is found, an error message box is shown, with message: "We could not open the issue in your IDE. Make sure your IDE is running with the latest version of SonarLint installed."
      • If at least one is found, a show request is sent to the first one (in port order) to open the hotspot, and a success message box is shown: "Success. Switch to your IDE to see the security hotspot."

      A spinner is shown in the button during the discovery process.

      Requests

      Discovery

      GET http://localhost:[port]/sonarlint/api/status

      In case of success, the response is a 200 with a JSON body, representing an object with the following attributes:

      Attribute Description Example
      ideName User-friendly short label for the type of IDE Visual Studio 2015
      description User-friendly short label to disambiguate the current IDE instance from other IDE instances MyProject.proj

      Show

      GET http://localhost:[port]/sonarlint/api/hotspots/show 

      Parameter  Description Example
      server
      [required]
      The base URL of the SonarQube server https://next.sonarqube.com/sonarqube
      project
      [required]
      Key of the project. my_project
      hotspot
      [required]
      Key of the Security Hotspot AU-TpxcA-iU5OvuD2FL0

      If a parameter is missing, the server will answer with a status 400. Else, it should answer with a 200.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jeanbaptiste.lievremont Jean-Baptiste Lievremont
              Reporter:
              jeanbaptiste.lievremont Jean-Baptiste Lievremont
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: