Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-7977

Error during minimization of selectnav.js

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.0
    • 4.0RC2
    • None
    • None

      This is the error and in attachments the js

      2017-01-31 17:12:46,092 ERROR [sitemap] (http-nio-8080-exec-10;/live/intranet/_plugins/core-ui/resources-minimized/LTgxNjUyMjEzMWZy.js) Cannot minimize JS for file '/live/skins/Intranet/resources/js/selectnav.js (1485870746000)'. Due to the following errors:
      [ERROR] il manque ';' avant une instruction ( */window.selectnav = function() {: 10)
      [ERROR] la valeur renvoyée est incorrecte (    return function(b, c) {: 11)
      [ERROR] erreur de syntaxe (}();: 1)
      [ERROR] Compilation produced 3 syntax errors. (null: 0)
      org.mozilla.javascript.EvaluatorException: Compilation produced 3 syntax errors.
              at org.ametys.plugins.core.ui.minimize.MinimizeJSReader$LoggerErrorReporter.runtimeError(MinimizeJSReader.java:140)
              at org.mozilla.javascript.Parser.parse(Parser.java:396)
              at org.mozilla.javascript.Parser.parse(Parser.java:340)
              at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:315)
              at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:540)
              at org.ametys.plugins.core.ui.minimize.MinimizeJSReader._handleFile(MinimizeJSReader.java:73)
              at org.ametys.plugins.core.ui.minimize.AbstractMinimizeReader._handleFiles(AbstractMinimizeReader.java
      Carca
      

        1. selectnav.js
          2 kB
          Frederic Ravetier

          [CMS-7977] Error during minimization of selectnav.js

          Frederic Ravetier (Inactive) made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

          I do not have the test case...

          Frederic Ravetier (Inactive) added a comment - I do not have the test case...
          Grégory Lefebvre (Inactive) made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Solved by the new minimization

          Grégory Lefebvre (Inactive) added a comment - Solved by the new minimization
          Grégory Lefebvre (Inactive) made changes -
          Assignee New: Grégory Lefebvre [ glefebvre ]
          Raphaël Franchet made changes -
          Fix Version/s New: 4.2.0 [ 14425 ]
          Raphaël Franchet made changes -
          Link New: This issue Est bloqué par RUNTIME-2470 [ RUNTIME-2470 ]
          Frederic Ravetier (Inactive) created issue -

            glefebvre Grégory Lefebvre (Inactive)
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: