Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-6398

[Java Broker] Update web management console UI to invoke dojo parser.parse as a promise due to changes in dojo 1.8 causing the parser to run in asynchronous fashion in some cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.22, 0.24, 0.26, 0.27, 0.28, 0.29, 0.30
    • 0.32
    • Broker-J
    • None

    Description

      Certain features introduced in Dojo 1.8 can cause the parser to run in an asynchronous fashion. The Qpid Web Management Console was upgraded to Dojo 1.8 sometime ago (QPID-4762), without taking this change into account. This is causing sporadic failures in the Console.

      The dojo docs say:

      For new development, it is best interact with parse() as if it was only a promise. For example, to do something with the instantiated objects, you would want to do something like:

      require(["dojo/parser", "dojo/_base/array"], function(parser, array){
        parser.parse().then(function(instances){
          array.forEach(instances, function(instance){
            // do something with instances
          });
        });
      });
      

      Attachments

        Issue Links

          Activity

            People

              kwall Keith Wall
              orudyy Alex Rudyy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: