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

Log flooding on date parameters of WS api/issues/search

    XMLWordPrintable

    Details

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

      Description

      Parameters that do not respect the date/datetime formats must not generate logs:

      2016.05.16 15:19:57 ERROR web[o.s.s.w.WebServiceEngine] Fail to process request http://localhost:9000/api/issues/search?createdAfter=2016-05-16T15:19:17+0200
      org.sonar.api.utils.SonarException: '2016-05-16T15:19:17 0200' cannot be parsed as either a date or date+time
      	at org.sonar.server.issue.IssueQueryService.parseAsDateTime(IssueQueryService.java:473) ~[sonar-server-5.6-SNAPSHOT.jar:na]
      	at org.sonar.server.issue.IssueQueryService.buildCreatedAfterFromRequest(IssueQueryService.java:224) ~[sonar-server-5.6-SNAPSHOT.jar:na]
      	at org.sonar.server.issue.IssueQueryService.createFromRequest(IssueQueryService.java:209) ~[sonar-server-5.6-SNAPSHOT.jar:na]
      	at org.sonar.server.issue.ws.SearchAction.doHandle(SearchAction.java:299) ~[sonar-server-5.6-SNAPSHOT.jar:na]
      	at org.sonar.server.issue.ws.SearchAction.handle(SearchAction.java:289) ~[sonar-server-5.6-SNAPSHOT.jar:na]
      	at org.sonar.server.ws.WebServiceEngine.execute(WebServiceEngine.java:100) ~[sonar-server-5.6-SNAPSHOT.jar:na]
      	at sun.reflect.GeneratedMethodAccessor196.invoke(Unknown Source) ~[na:na]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_65]
      	at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_65]
      	at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:425) [jruby-complete-1.7.9.jar:na]
      	at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:292) [jruby-complete-1.7.9.jar:na]
      	at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:44) [jruby-complete-1.7.9.jar:na]
      	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:70) [jruby-complete-1.7.9.jar:na]
      	at org.jruby.ast.CallManyArgsNode.interpret(CallManyArgsNode.java:59) [jruby-complete-1.7.9.jar:na]
      	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na]
      	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) [jruby-complete-1.7.9.jar:na]
      	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74) [jruby-complete-1.7.9.jar:na]
      	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:161) [jruby-complete-1.7.9.jar:na]
      	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:190) [jruby-complete-1.7.9.jar:na]
      	at org.jruby.RubyClass.finvoke(RubyClass.java:527) [jruby-complete-1.7.9.jar:na]
      	at org.jruby.RubyBasicObject.send(RubyBasicObject.java:2590) [jruby-complete-1.7.9.jar:na]
      	at org.jruby.RubyKernel.send(RubyKernel.java:2223) [jruby-complete-1.7.9.jar:na]
      	at org.jruby.RubyKernel$INVOKER$s$send.call(RubyKernel$INVOKER$s$send.gen) [jruby-complete-1.7.9.jar:na]
      	at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:350) [jruby-complete-1.7.9.jar:na]
      	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326) [jruby-complete-1.7.9.jar:na]
      	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170) [jruby-complete-1.7.9.jar:na]
      	at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36) [jruby-complete-1.7.9.jar:na]
      	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na]
      

        Attachments

          Activity

            People

            Assignee:
            teryk.bellahsene Teryk Bellahsene
            Reporter:
            simon.brandhof Simon Brandhof (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: