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

/api/properties must return the default value in case the property is not overloaded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.6
    • Component/s: Plugin API, Web API
    • Labels:

      Description

      Currently /api/properties/[key] is returning a message like the following one when the property is not overloaded :

      <error>
        <code>404</code>
        <msg>Property not found: sonar.java.coveragePlugin</msg>
      </error>
      

      This makes the user think there is a real error whilst it's just that the API is not returning value when property is not overloaded.

      And /api/properties should also return default properties

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              julien.lancelot Julien Lancelot
              Reporter:
              agigleux OLD - Alexandre Gigleux (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: