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

Old Prototype library causes problems with modern UI frameworks

      Jenkins bundles an ancient release of Prototype.js (1.7 in war from 2010, 1.6.0.2 in Stapler from 2008). These releases are not compatible with all features of modern JS frameworks like jQuery and Chart.js and Bootstrap. In order to use other libraries we should upgrade to the latest release 1.7.3 (still old  - 2015 - but with several fixes). 

      E.g., with the bundles 1.7 version the simple 'Hello World' is not shown due to a JS error. With version 1.7.3 the error disappears.

       

          [JENKINS-49319] Old Prototype library causes problems with modern UI frameworks

          Ulli Hafner created issue -
          Ulli Hafner made changes -
          Issue Type Original: Improvement [ 4 ] New: Bug [ 1 ]

          Oleg Nenashev added a comment -

          Oleg Nenashev added a comment - https://github.com/jenkinsci/jenkins/pull/3277
          Oleg Nenashev made changes -
          Remote Link New: This issue links to "https://github.com/jenkinsci/jenkins/pull/3277 (Web Link)" [ 20010 ]
          Oleg Nenashev made changes -
          Assignee New: Ulli Hafner [ drulli ]
          Oleg Nenashev made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Oleg Nenashev made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]

          Ulli Hafner added a comment -

          See also the stack trace if Chart.js is used within Jenkins with Prototype.JS 1.7.

          Ulli Hafner added a comment - See also the stack trace if Chart.js is used within Jenkins with Prototype.JS 1.7.

          Ulli Hafner added a comment -

          Here is an example of the upcoming release of analysis-core: Priority Doughnut Graph. If I change the graph type to a bar-chart then the error in the stack trace (comment before) appears.

          Ulli Hafner added a comment - Here is an example of the upcoming release of analysis-core: Priority Doughnut Graph . If I change the graph type to a bar-chart then the error in the stack trace (comment before) appears.

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          war/src/main/webapp/scripts/prototype.js
          http://jenkins-ci.org/commit/jenkins/5ed43002d7daca06676c565aab18c1842123281f
          Log:
          [FIXED JENKINS-49319] Upgrade to Prototype 1.7.3.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: war/src/main/webapp/scripts/prototype.js http://jenkins-ci.org/commit/jenkins/5ed43002d7daca06676c565aab18c1842123281f Log: [FIXED JENKINS-49319] Upgrade to Prototype 1.7.3.

            Unassigned Unassigned
            drulli Ulli Hafner
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: