Uploaded image for project: 'Magnolia Groovy Module'
  1. Magnolia Groovy Module
  2. MGNLGROOVY-153

ScriptDonePollListener stays around after script is done

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 2.4.7, 2.5.1
    • 2.4.6, 2.5
    • None
    • None
    • Basel 70
    • 2

      Maybe sort of corner case, still I'd like to report it and fix it (should be easy)
      To reproduce it:

      • execute a "long-running" groovy script (anything which takes more than 200ms )
        • the script will send a notification and a message to pulse when done
      • now try to upload a big file in Assets
      • cancel the upload before it's done
      • the groovy script done notify and message appear out of the blue

      The reason should lie in the fact that we remove instances of ScriptDonePollListener from the current UI each time we run MgnlGroovyConsole#runAsync and not when the script is done at MgnlGroovyConsole.ScriptDonePollListener#poll.

      Vaadin's PollListener s apparently react to any polling event, no matter which component registered it.

        Acceptance criteria

              fgrilli Federico Grilli
              fgrilli Federico Grilli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD