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

When calling a web service with some wrong data, the generated exception does not contains the called URL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.1
    • Component/s: Web API
    • Labels:
      None

      Description

      For instance, we using http://localhost:9000/api/issues/search?createdAt=2010-01-0A, a 500 is well returned to the user, but on server side the exception does not contains the URL, it contains :

      2015.01.13 14:19:01 ERROR web[o.s.s.w.WebServiceEngine]  Fail to process request org.sonar.server.ws.ServletRequest@6f4a1327
      org.sonar.api.utils.SonarException: '2010-01-0A' cannot be parsed as either a date or date+time
      	at org.sonar.api.server.ws.Request.paramAsDateTime(Request.java:207) ~[sonar-plugin-api-5.1-SNAPSHOT.jar:na]
      	at org.sonar.server.issue.IssueQueryService.createFromRequest(IssueQueryService.java:126) ~[sonar-server-5.1-SNAPSHOT.jar:na]
      	at org.sonar.server.issue.ws.SearchAction.doQuery(SearchAction.java:260) ~[sonar-server-5.1-SNAPSHOT.jar:na]
      	at org.sonar.server.issue.ws.SearchAction.doQuery(SearchAction.java:79) ~[sonar-server-5.1-SNAPSHOT.jar:na]
      	at org.sonar.server.search.ws.SearchRequestHandler.handle(SearchRequestHandler.java:111) ~[sonar-server-5.1-SNAPSHOT.jar:na]
      	at org.sonar.server.ws.WebServiceEngine.execute(WebServiceEngine.java:84) ~[sonar-server-5.1-SNAPSHOT.jar:na]
      

        Attachments

          Activity

            People

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

              Dates

              Due:
              Created:
              Updated:
              Resolved: