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

Measure Filter widgets fail to display using French language pack

    XMLWordPrintable

    Details

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

      Description

      The histogram widget fails to display when the French language pack is in use.

      This is due to a string being built using a Rails instruction of this form: '<%= message('widget.measure_filter.no_main_metric') -%>'

      The issue is that if the message contains a quote, the string ends abruptly and the widget is not displayed.

      This should be checked in all widgets, and properly escaped using the 'j' Rails helper - see http://api.rubyonrails.org/classes/ActionView/Helpers/JavaScriptHelper.html#method-i-escape_javascript

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stas.vilchik Stas Vilchik (Inactive)
              Reporter:
              jb.lievremont OLD - Jean-Baptiste Lièvremont (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: