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

Pipeline Visual Editor fails to load properly on "Install without restart"

    XMLWordPrintable

    Details

    • Similar Issues:
    • Sprint:
      Blue Ocean 1.0-rc3

      Description

      Reproduce in DEV: 

      • clear your work dir
      • remove dependencies on editor in poms
      • run up and install all default plugins
      • open blue ocean
      • install editor
      • go back to blue ocean and open editor, look in console - will see a 404 due to an api not being loaded. 

       

       

      Fairly easy to reproduce:

      Be greeted with JavaScript errors

        Attachments

          Activity

          Hide
          michaelneale Michael Neale added a comment - - edited

          did another try, this time with all updated plugins, it definitely seems that it is unable to load that endpoint - 404 consistently until restart... I think it is a backend thing. 

           

          cc'ing Vivek Pandey to see if he can make any sense of this. Not a huge thing for right now but would be good to know. 

          Show
          michaelneale Michael Neale added a comment - - edited did another try, this time with all updated plugins, it definitely seems that it is unable to load that endpoint - 404 consistently until restart... I think it is a backend thing.    cc'ing Vivek Pandey to see if he can make any sense of this. Not a huge thing for right now but would be good to know. 
          Hide
          kzantow Keith Zantow added a comment -
          Show
          kzantow Keith Zantow added a comment - Vivek Pandey Michael Neale FYI - looks like this is the problem, probably not getting updated when plugins are installed:  https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-rest/src/main/java/io/jenkins/blueocean/rest/ApiHead.java#L116
          Hide
          vivek Vivek Pandey added a comment -

          Keith Zantow Michael Neale we need to construct api routs lazily, so that it waits till all plugins are loaded.

          I think the main problem here is, if a plugin that brings extra routes to /blue/rest/, if its installed, how do we update paths without restarting. At present there doesn't seem to be eventing system in Jenkins plugin manager that sends events such as plugin installed/uninstalled. If we have something like that, we can update api routes dynamically. 

          Show
          vivek Vivek Pandey added a comment - Keith Zantow Michael Neale we need to construct api routs lazily, so that it waits till all plugins are loaded. I think the main problem here is, if a plugin that brings extra routes to /blue/rest/, if its installed, how do we update paths without restarting. At present there doesn't seem to be eventing system in Jenkins plugin manager that sends events such as plugin installed/uninstalled. If we have something like that, we can update api routes dynamically. 
          Hide
          vivek Vivek Pandey added a comment -

          Maybe 

          ExtensionListListener.onChange() can be used to update api routes in sync with plugins. 

          Show
          vivek Vivek Pandey added a comment - Maybe  ExtensionListListener.onChange() can be used to update api routes in sync with plugins. 
          Hide
          jamesdumay James Dumay added a comment -

          Old ticket. Not seen this problem in a long time.

          Show
          jamesdumay James Dumay added a comment - Old ticket. Not seen this problem in a long time.

            People

            Assignee:
            vivek Vivek Pandey
            Reporter:
            rtyler R. Tyler Croy
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: