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

It should be possible to set a remediation function value to 0 minute

    XMLWordPrintable

    Details

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

      Description

      It's currently not possible to set the gap multiplier or offset of a remediation function to 0 minute.

      For instance, when updating a rule with a remediation function to "LINEAR" and a gap multiplier to "0min", the WS api/rules/update (for instance http://localhost:9000/api/rules/update?key=squid:S1148&remediation_fn_type=LINEAR&remediation_fy_gap_multiplier=0min) is failing but the database and elastic has been updated with an empty value.
      As a consequence, analysis that generate issue on that rule will fail with "Linear functions must only have a non empty gap multiplier".

        Attachments

          Activity

            People

            Assignee:
            julien.lancelot Julien Lancelot
            Reporter:
            julien.lancelot Julien Lancelot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: