Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-70990

"View" and "Edit file" from attachments macro breaks the preview

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Low
    • Macros - Attachments
    • None

    Description

      Issue Summary

      When clicking the view or edit file buttons from the attachments macro, the file previewer will fail to load completely. This issue happens on Google Chrome.

      Steps to Reproduce

      1. Add an attachment to the page
      2. Add an attachments macro to the page
      3. View the page and click "View" or "Edit file" for the attachment in the attachment macro

      Expected Results

      Legacy file previewer opens fully

      Actual Results

      File previewer opens partially and multiple errors appear in the browser console.

      com.atlassian.confluence.extra.officeconnector:file-viewer-plugin.js?externals=__local-default__&locale=en-US:20 Uncaught (in promise) Error: Office connector expects the "name" property to be passed by the file viewer
          at MediaViewer.<anonymous> (com.atlassian.confluence.extra.officeconnector:file-viewer-plugin.js?externals=__local-default__&locale=en-US:20)
          at x (batch.js?externals=__local-default__&locale=en-US:1145)
          at MediaViewer.trigger (batch.js?externals=__local-default__&locale=en-US:1143)
          at MediaViewer.<anonymous> (com.atlassian.confluence.extra.officeconnector:mediaviewer-core.js?externals=__local-default__:823)
          at f (jquery.js:1086)
          at Object.fireWith (jquery.js:1204)
          at Object.fire [as resolve] (jquery.js:1211)
          at Object.<anonymous> (com.atlassian.confluence.extra.officeconnector:mediaviewer-core.js?externals=__local-default__:1372)
          at f (jquery.js:1086)
          at Object.fireWith (jquery.js:1204)
      
      com.atlassian.confluence.extra.officeconnector:mediaviewer-core.js?externals=__local-default__:103 Uncaught TypeError: Cannot read property 'call' of undefined
          at __webpack_require__ (com.atlassian.confluence.extra.officeconnector:mediaviewer-core.js?externals=__local-default__:103)
          at com.atlassian.confluence.extra.officeconnector:mediaviewer-core.js?externals=__local-default__:4509
          at webpackJsonpCallback (com.atlassian.confluence.extra.officeconnector:mediaviewer-core.js?externals=__local-default__:55)
          at mediaviewer-1.js:1
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aknight@atlassian.com Alex K
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: