Uploaded image for project: 'Hawkular'
  1. Hawkular
  2. HAWKULAR-935

REST calls being made without persona being initialized

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.0.0.Alpha 9
    • None
    • User Interface
    • None

    Description

      In several pages there's a race condition between persona initialization and some queries, causing some queries methods to be called when there's still no persona id, causing a failure like:

      TypeError: Cannot read property 'id' of undefined
          at AppServerJvmDetailsController.getJvmContextChartData (appServerJvmDetails.ts:241)
          at new AppServerJvmDetailsController (appServerJvmDetails.ts:129)
          at Object.invoke (angular.js?v=1452855078784:4523)
          at extend.instance (angular.js?v=1452855078784:9182)
          at nodeLinkFn (angular.js?v=1452855078784:8299)
          at compositeLinkFn (angular.js?v=1452855078784:7731)
          at publicLinkFn (angular.js?v=1452855078784:7611)
          at boundTranscludeFn (angular.js?v=1452855078784:7749)
          at controllersBoundTransclude (angular.js?v=1452855078784:8362)
          at Object.ngIfWatchAction [as fn] (angular.js?v=1452855078784:24126)
      

      Any call should wait for $rootScope.currentPersona to be populated.

      Attachments

        Activity

          People

            alexandrem_jira Alexandre Mendonça (Inactive)
            alexandrem_jira Alexandre Mendonça (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: