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

When copying a quality profile, the user should be warned if the target name is already taken

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.4
    • Fix Version/s: 4.5.1
    • Component/s: Quality Profile
    • Labels:
      None

      Description

      Indeed, currently, if you copy quality profile Foo and give it "Bar" name whereas Bar already exists, then Bar is fully overwritten without any notice.

      To reproduce:

      • Create a Java profile with 1 rule
      • Copy this profile and specify "Sonar way"
      • => the existing "Sonar way" is fully overwritten and has only 1 rule

      We should not prevent this action as it could be useful in some cases, but just warn the user about what he's doing. So when clicking on "Copy", the modal window should display the following message:

      You are about to copy this quality profile into the existing "XXXX" profile, which will fully overwrite this profile. Do you really want this?

        Attachments

          Activity

            People

            Assignee:
            jb.lievremont OLD - Jean-Baptiste Lièvremont (Inactive)
            Reporter:
            fabemn OLD - Fabrice Bellingard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: