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

ConsoleAnnotatorFactory serves stale JavaScript and CSS when a plugin is upgraded/downgraded

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • Latest Jenkins as of 2016-08-05
    • toward 2.152

      When a plugin extends ConsoleAnnotatorFactory, it can serve a JavaScript file and a CSS file. These resources expire after a day, which means that after upgrading or downgrading the plugin, they remain out of date for a while. This is most likely the cause of JENKINS-31213.

      It is possible to work around this within the plugins by renaming the ConsoleAnnotatorFactory subclass every time the JavaScript or CSS files are changed. I wasn't able to find a better workaround - see this comment.

      This could be fixed within Jenkins by including the plugin version or the SESSION_HASH in the URL. The plugin version would allow the resources to be cached for longer, but the SESSION_HASH is probably easier to implement.

          [JENKINS-38719] ConsoleAnnotatorFactory serves stale JavaScript and CSS when a plugin is upgraded/downgraded

          Steven G Brown created issue -
          Steven G Brown made changes -
          Link New: This issue relates to JENKINS-38085 [ JENKINS-38085 ]
          Steven G Brown made changes -
          Link New: This issue relates to JENKINS-31213 [ JENKINS-31213 ]
          Daniel Beck made changes -
          Assignee New: Daniel Beck [ danielbeck ]
          Daniel Beck made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Daniel Beck made changes -
          Remote Link New: This issue links to "PR 3692 (Web Link)" [ 21923 ]
          Daniel Beck made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Jesse Glick made changes -
          Assignee Original: Daniel Beck [ danielbeck ] New: Jesse Glick [ jglick ]

          Jesse Glick added a comment -

          Another fix at PR 3757 (sorry danielbeck I had no idea this was even a filed issue).

          Jesse Glick added a comment - Another fix at PR 3757 (sorry danielbeck I had no idea this was even a filed issue).
          Jesse Glick made changes -
          Remote Link New: This issue links to "PR 3757 (Web Link)" [ 22033 ]

            jglick Jesse Glick
            stevengbrown Steven G Brown
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: