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

Restore Profile does not warn on missing rules

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.6
    • Component/s: Quality Profile, Web
    • Labels:

      Description

      The 'Restore Profile' functionality does not provide any feedback regarding rules that could not be restored as part of this profile. If a rule does not exist it is silently ignored and the profile will have less rules than expected.

      Steps to reproduce:

      • backup an existing profile
      • edit the XML by corrupting one rule's key on purpose
      • restore the profile by uploading the modified XML
      • notice how no warning/error is displayed, though the profile has one less rule

      Notes:

      • this used to work in old SonarQube versions, see errorSonarQube42.png . But broken in 4.5.6 and 5.4 .
      • interestingly enough, using browser's Developer Tools, we can see that the server's response does mention rulesFailures, without any further details though. See restore_response.png .

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stas.vilchik Stas Vilchik (Inactive)
              Reporter:
              nicolas.bontoux Nicolas Bontoux
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: