Details
-
Bug
-
Resolution: Cannot Reproduce
-
Medium
-
20
-
Minor
-
0
-
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
- Create a page and attach a word (.doc/ .docx) file
- Publish the page
- Create a new page and insert the Office Word macro
- Type the name of the other page and select the attached document
- 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.