Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-30243

Workbox Host Plugin leaks jQuery as $ to global

    XMLWordPrintable

Details

    Description

      The Workbox - Host Plugin (1.1.27, com.atlassian.mywork.mywork-confluence-host-plugin) leaks jQuery as $ to global.

      Steps to reproduce:

      1. /sw/studio/icebat-51.1/install/install-studio.sh
      2. go to an arbitrary page (workbox resources are sourced due to the header)
      3. open console and type $, the response should be something like:
        function ( selector, context ) {
        		// The jQuery object is actually just the init constructor 'enhanced'
        		return new jQuery.fn.init( selector, context, rootjQuery );
        	}
        
      4. go to UPM (/wiki/plugins/servlet/upm/manage/all#manage)
      5. disable the Workbox - Host Plugin
      6. repeat step 2 and 3, the response now should be
        undefined
        

      Please coordinate with the fix for CONFDEV-18766 before removing this, because this is currently the only reason why the issue is not hitting everyone in OnDemand land.

      Attachments

        Issue Links

          Activity

            People

              tpiotrowski Ted Piotrowski (Inactive)
              fakraemer fabs
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: