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

Personalization error: TypeError: Cannot read property 'state' of null(…) when loading logged in dashboard

    XMLWordPrintable

Details

    • pannonian

    Description

      An error happened when loading the dashboard, due to favourites.
      Favourites will not load up for some users (in this case, Tyler).

      This seems to be new since upgrading from b15 to b16. As of b15 it was working correctly.

      Looking through https://github.com/jenkinsci/blueocean-plugin/commits/master
      The only commit to touch on personalisation is https://github.com/jenkinsci/blueocean-plugin/commit/471cded94015f64512834a4746eca053c4db94a2 - so this may be a place to look (may also be a data problem).

      The stack trace:
      https://gist.github.com/rtyler/6ed57a6617538ac3305c0d36e269a2ad#file-favorites-json

      The data returned in favourites:
      https://gist.github.com/rtyler/6ed57a6617538ac3305c0d36e269a2ad#file-favorites-json

      The contents of https://ci.jenkins.io/blue/rest/users/rtyler/favorites/ can be found here

      Steps to Reproduce

      1. Create a Pipeline (not a multibranch Pipeline). It doesn't have to contain anything, just create the item.
      2. Favorite the item
      3. Reload the Blue Ocean dashboard

      See this more complete traceback from Firefox

      Attachments

        Activity

          I am not sure 201604291_tyler but from the stacktrace it seems that

          at Object.SET_FAVORITES (https://ci.jenkins.io/adjuncts/d5b4f7fa/org/jenkins/ui/jsmodules/blueocean-personalization/jenkins-js-extension.js:30191:24)
          

          it fails when setting the favorites which hints on problems from the backend.

          However I cannot reproduce it and I would need you to do a "go to" the lines that are failing so I can see where exactly in the code this is happening.

          tscherler Thorsten Scherler added a comment - I am not sure 201604291_tyler but from the stacktrace it seems that at Object .SET_FAVORITES (https: //ci.jenkins.io/adjuncts/d5b4f7fa/org/jenkins/ui/jsmodules/blueocean-personalization/jenkins-js-extension.js:30191:24) it fails when setting the favorites which hints on problems from the backend. However I cannot reproduce it and I would need you to do a "go to" the lines that are failing so I can see where exactly in the code this is happening.
          michaelneale Michael Neale added a comment -

          201604291_tyler is there some time you could repro this and have Thor watch over your shoulder (metaphorically) to see the data etc?

          michaelneale Michael Neale added a comment - 201604291_tyler is there some time you could repro this and have Thor watch over your shoulder (metaphorically) to see the data etc?
          rtyler R. Tyler Croy added a comment -

          Working this out with tscherler we have found a SIMPLE AND EASY reproduction case.

          YAY.

          Updating the description appropriately

          rtyler R. Tyler Croy added a comment - Working this out with tscherler we have found a SIMPLE AND EASY reproduction case. YAY. Updating the description appropriately

          People

            tscherler Thorsten Scherler
            rtyler R. Tyler Croy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: