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

Log flooding when a WS parameter is not an integer as expected

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.2
    • Component/s: Web API
    • Labels:
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Fail to process request http://sonarcloud.io/api/issues/search?organizations=thepracticaldeveloper&ps=10%20%3E%20issues.json
      java.lang.IllegalStateException: 'ps' value '10 > issues.json' cannot be parsed as an integer
      	at org.sonar.api.server.ws.internal.ValidatingRequest.validateAsNumeric(ValidatingRequest.java:219)
      	at org.sonar.api.server.ws.internal.ValidatingRequest.validateMaximumValue(ValidatingRequest.java:204)
      	at org.sonar.api.server.ws.internal.ValidatingRequest.param(ValidatingRequest.java:83)
      	at org.sonar.api.server.ws.Request.mandatoryParam(Request.java:79)
      	at org.sonar.api.server.ws.Request.mandatoryParamAsInt(Request.java:100)
      	at org.sonar.server.issue.ws.SearchAction
      

      This error is restricted to parameters declaring a maximum value.

        Attachments

          Activity

            People

            • Assignee:
              simon.brandhof Simon Brandhof
              Reporter:
              simon.brandhof Simon Brandhof
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: