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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Environment:
      Latest Jenkins as of 2016-08-05
    • Similar Issues:
    • Released As:
      toward 2.152

      Description

      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.

        Attachments

          Issue Links

            Activity

            stevengbrown Steven G Brown created issue -
            stevengbrown Steven G Brown made changes -
            Field Original Value New Value
            Link This issue relates to JENKINS-38085 [ JENKINS-38085 ]
            stevengbrown Steven G Brown made changes -
            Link This issue relates to JENKINS-31213 [ JENKINS-31213 ]
            danielbeck Daniel Beck made changes -
            Assignee Daniel Beck [ danielbeck ]
            danielbeck Daniel Beck made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            danielbeck Daniel Beck made changes -
            Remote Link This issue links to "PR 3692 (Web Link)" [ 21923 ]
            danielbeck Daniel Beck made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jglick Jesse Glick made changes -
            Assignee Daniel Beck [ danielbeck ] Jesse Glick [ jglick ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 3757 (Web Link)" [ 22033 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-54304 [ JENKINS-54304 ]
            jglick Jesse Glick made changes -
            Labels lts-candidate
            jglick Jesse Glick made changes -
            Status In Review [ 10005 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] Open [ 1 ]
            jglick Jesse Glick made changes -
            Released As toward 2.152
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
            danielbeck Daniel Beck made changes -
            Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]
            olivergondza Oliver Gond┼ża made changes -
            Labels lts-candidate 2.150.1-fixed

              People

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

                Dates

                Created:
                Updated:
                Resolved: