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

A Project can have the same key as a View (and vice-versa)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5.6, 5.3
    • Fix Version/s: 5.6
    • Component/s: None
    • Labels:

      Description

      A project analysis can use the same key as an existing view. Analysing such a project will then remove the view from the UI, and analysing the view would then remove the project from the UI (etc.).
      Views Definition through Web Service can use the same key as an existing project. Analysing such a view will then remove the project from the UI, and analysing the project would then remove the view from the UI (etc.).

      Reproduction:

      1. create a view called foo and compute the view (bookmark foo dashboard/homepage)
      2. analyse a project and force sonar.projectKey=foo
      3. foo appears in the project list, bookmark from step 1 now points to the analysed project, view is not visible anymore in the UI
      4. analyse view foo
      5. foo is now a view again, it has been removed from the projects' list, bookmark from step 1 now points to the analysed view, project is not visible anymore in the UI

      Other scenario:

      1. analyse a project and force sonar.projectKey=foo (bookmark foo dashboard/homepage)
      2. use api/views/define with an XML that declares view foo
      3. compute your views
      4. foo appears in the view list, bookmark from step 1 now points to the view, project is not visible anymore in the UI
      5. analyse project foo
      6. foo is now a project again, it has been removed from the views' list, bookmark from step 1 now points to the analysed project, view is not visible anymore in the UI

      LTS VS 5.3 behaviour:
      FYI, in 4.5.6 the dashboard fully switches between a Project Dashboard and a View dashboard (with their respective metrics and specific admin settings)
      In 5.3 it's slightly different, for example the admin settings remain the ones of a view, even when it is analysed as a project

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sebastien.lesaint Sebastien Lesaint
              Reporter:
              nicolas.bontoux Nicolas Bontoux
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: