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

Office macros can't open files from another page on the new editor

    XMLWordPrintable

Details

    Description

      Issue Summary

      On the office macros (word, powerpoint, excel) can't be added to the page when selecting a file from another page

      Steps to Reproduce

      1. Create a page and attach a word (.doc/ .docx) file
      2. Publish the page
      3. Create a new page and insert the Office Word macro
      4. Type the name of the other page and select the attached document
      5. Try to preview/ save the macro

      Expected Results

      The macro should preview the document and be added to the page

      Actual Results

      Nothing happens and the following errors are logged on the browser's console:

      jquery.js:8274 GET https://<INSTANCE>.atlassian.net/wiki/json/attachmentsearch.action?spaceKey=TS&title=Docum&fileTypes=doc&fileTypes=docx 404
      send @ jquery.js:8274
      ajax @ jquery.js:7746
      l.<computed> @ jquery.js:7272
      getJSON @ jquery.js:7289
      f.getData @ com.atlassian.confluence.plugins.confluence-macro-browser:macro-browser-js.js?externals=__local-default__&locale=en-US:12
      n.dependencyUpdated @ overrides.js:134
      n @ com.atlassian.confluence.plugins.confluence-macro-browser:macro-browser-js.js?externals=__local-default__&locale=en-US:14
      a.onchange @ com.atlassian.confluence.plugins.confluence-macro-browser:macro-browser-js.js?externals=__local-default__&locale=en-US:19
      dispatch @ jquery.js:3364
      c @ jquery.js:2973
      
      overrides.js:74 Uncaught TypeError: Cannot read property 'getCurrentTitle' of undefined
          at e.beforeParamsRetrieved (overrides.js:74)
          at Object.q [as getMacroDefinitionFromForm] (com.atlassian.confluence.plugins.confluence-macro-browser:macro-browser-js.js?externals=__local-default__&locale=en-US:74)
          at Object.a.complete (com.atlassian.confluence.plugins.confluence-macro-browser:macro-browser-js.js?externals=__local-default__&locale=en-US:135)
          at HTMLButtonElement.<anonymous> (com.atlassian.confluence.plugins.confluence-macro-browser:macro-browser-js.js?externals=__local-default__&locale=en-US:116)
          at HTMLButtonElement._onclick (batch.js?externals=__local-default__&locale=en-US:792)
          at HTMLButtonElement.dispatch (jquery.js:3364)
          at HTMLButtonElement.c (jquery.js:2973)

      Note

      • It is also affecting old editor

      Workaround

      Attach the Office file to the current page and insert the macro without specifying a page name in the “Page Name” field. This will prompt the macro to look into the current page.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gtworkowski Guilherme T (Inactive)
            Votes:
            17 Vote for this issue
            Watchers:
            28 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: