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

Fail to save a measure filter when name criteria contains a comma

    XMLWordPrintable

    Details

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

      Description

      To reproduce this issue :

      • Go the the Measures page
      • Add the Name contains criteria and enter ","
      • Search and save the filter

      Here is the stacktrace :

      2014.06.12 15:06:14 ERROR [o.s.MEASURE_FILTER]  Fail to execute measure filter: MeasureFilterContext[filter={asc=true|base=com.sonarsource.it.samples:simple-sample|cols=metric:alert_statusnamedatemetric:nclocmetric:violationslinks|display=list|nameSearch=|pageSize=100|qualifiers=BRC|sort=name|id=99},sql=<null>,user=1]
      java.lang.ClassCastException: org.jruby.RubyArray cannot be cast to java.lang.String
      	at org.sonar.server.measure.MeasureFilterFactory.create(MeasureFilterFactory.java:65) ~[MeasureFilterFactory.class:na]
      	at org.sonar.server.measure.MeasureFilterEngine.execute(MeasureFilterEngine.java:58) ~[MeasureFilterEngine.class:na]
      	at org.sonar.server.ui.JRubyFacade.executeMeasureFilter(JRubyFacade.java:86) [JRubyFacade.class: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: