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

Old Prototype library causes problems with modern UI frameworks

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

       

        Attachments

          Issue Links

            Activity

            Show
            oleg_nenashev Oleg Nenashev added a comment - https://github.com/jenkinsci/jenkins/pull/3277
            Hide
            drulli Ulli Hafner added a comment -

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

            Show
            drulli Ulli Hafner added a comment - See also the stack trace if Chart.js is used within Jenkins with Prototype.JS 1.7.
            Hide
            drulli 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.

            Show
            drulli 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.
            Hide
            scm_issue_link 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.

            Show
            scm_issue_link 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.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            The fix has been integrated towards 2.110. I am not marking it as LTS candidate, because it seems to be a bit risky to backport it. Ulli Hafner please mark it as LTS candidate if you need it in the release

            Show
            oleg_nenashev Oleg Nenashev added a comment - The fix has been integrated towards 2.110. I am not marking it as LTS candidate, because it seems to be a bit risky to backport it. Ulli Hafner please mark it as LTS candidate if you need it in the release

              People

              • Assignee:
                drulli Ulli Hafner
                Reporter:
                drulli Ulli Hafner
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: