Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64266

Timestamper script erroring on Firefox

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: timestamper-plugin
    • Labels:
      None
    • Environment:
      Timestamper: 1.11.8
      Jenkins: 2.249.2
      Firefox: 82.0.3 (64-bit)
      MacOS: 10.15.7
    • Similar Issues:

      Description

      Uncaught TypeError: modes[mode] is null
          init https://jenkins.sourcevertex.net/static/6234bfb6/extensionList/hudson.console.ConsoleAnnotatorFactory/hudson.plugins.timestamper.annotator.TimestampAnnotatorFactory3/script.js:62
          onComplete https://jenkins.sourcevertex.net/static/6234bfb6/scripts/prototype.js:1806
          bind https://jenkins.sourcevertex.net/static/6234bfb6/scripts/prototype.js:414
          respondToReadyState https://jenkins.sourcevertex.net/static/6234bfb6/scripts/prototype.js:1670
          onStateChange https://jenkins.sourcevertex.net/static/6234bfb6/scripts/prototype.js:1600
          bind https://jenkins.sourcevertex.net/static/6234bfb6/scripts/prototype.js:414
      script.js:62:5
          init https://jenkins.sourcevertex.net/static/6234bfb6/extensionList/hudson.console.ConsoleAnnotatorFactory/hudson.plugins.timestamper.annotator.TimestampAnnotatorFactory3/script.js:62
          onComplete https://jenkins.sourcevertex.net/static/6234bfb6/scripts/prototype.js:1806
          bind https://jenkins.sourcevertex.net/static/6234bfb6/scripts/prototype.js:414
          respondToReadyState https://jenkins.sourcevertex.net/static/6234bfb6/scripts/prototype.js:1670
          onStateChange https://jenkins.sourcevertex.net/static/6234bfb6/scripts/prototype.js:1600
          bind https://jenkins.sourcevertex.net/static/6234bfb6/scripts/prototype.js:414
      

      Looking at the code, it looks like an issue defaulting the cookies:
      https://github.com/jenkinsci/timestamper-plugin/blob/master/src/main/resources/hudson/plugins/timestamper/annotator/TimestampAnnotatorFactory3/script.js#L62

      Not sure if this is related, but the console options are not rendering on Firefox (see attached screenshot) - which started this investigation.

        Attachments

          Activity

          Hide
          multani Jonathan Ballet added a comment -

          The Javascript error in the console looks like a consequence of a problem, rather than the cause.

          It looks like:

          • The rendering of the "Timestamps" form in the left panel is broken and produces the garbled output seen in the screenshot.
          • Since the form is not there, the script.js script can't find the related HTML elements, and the modes variables contains only null values, resulting in the error reported originally.

          I'm trying to find a way to reproduce the issue reliably.

          Show
          multani Jonathan Ballet added a comment - The Javascript error in the console looks like a consequence of a problem, rather than the cause. It looks like: The rendering of the "Timestamps" form in the left panel is broken and produces the garbled output seen in the screenshot. Since the form is not there, the script.js script can't find the related HTML elements , and the modes variables contains only null values, resulting in the error reported originally. I'm trying to find a way to reproduce the issue reliably.
          Hide
          multani Jonathan Ballet added a comment - - edited
          • The following screenshot show the HTML using a new Jenkins instance and the plugin v1.11.8, when it doesn't exhibit the problem: the HTML is correctly generated.
          • The next screenshot show the HTML rendered on a Jenkins instance running v1.11.8 when the garbled output appears: the HTML content is completely replaced by this weird output.

          I guess there's a conflict somehow, but I don't have any idea how to debug this. Both are running Jenkins 2.274.

          Show
          multani Jonathan Ballet added a comment - - edited The following screenshot show the HTML using a new Jenkins instance and the plugin v1.11.8, when it doesn't exhibit the problem: the HTML is correctly generated. The next screenshot show the HTML rendered on a Jenkins instance running v1.11.8 when the garbled output appears: the HTML content is completely replaced by this weird output. I guess there's a conflict somehow, but I don't have any idea how to debug this. Both are running Jenkins 2.274.
          Hide
          emueller Eva Müller added a comment - - edited

          This also happens with the following environment

          • Microsoft Windows [Version 10.0.19042.746]
          • Jenkins 2.263.1
          • Firefox: 84.0.2 (64-bit)

          There are no scripting errors on the same machine with the following browsers:

          • Chrome (Version 87.0.4280.141)
          • Edge (Version 87.0.664.75) 
          Show
          emueller Eva Müller added a comment - - edited This also happens with the following environment Microsoft Windows [Version 10.0.19042.746] Jenkins 2.263.1 Firefox: 84.0.2 (64-bit) There are no scripting errors  on the same machine with the following browsers: Chrome (Version 87.0.4280.141) Edge (Version 87.0.664.75) 

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            canuck1987 Tim Brown
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated: