-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 6.0.6, 6.4.3, 6.6.0
-
Component/s: Integrations - Office Connector
-
7
-
Severity 3 - Minor
-
0
Summary
OfficeConnector-canary.jar is removed by the scheduled job empty temp folder that causes word document import failure
Instance Details
- Confluence 6.0.6
How to Replicate
- Access http://localhost:8090/admin/darkfeatures.action
- Enable com.atlassian.confluence.officeconnector.canary darkfeature.
- Create a page in Confluence or go to an existing page (you want to view the page, not edit it).
- Choose (...) > Import Word Document
- Choose Browse and locate the Word document you want to import then choose Next.
The import document options appear. - Enter a title for the new page (useful if you do not want to use the file name as your page title).
- Choose where you want to import the file (as a brand new page, or overwriting an existing page with the same title).
- Choose how to handle title conflicts (rename the new pages or replace existing pages).
- Choose whether to create a single page or multiple pages based on the heading styles in the file (this option is only available if the file contains heading styles).
- Click Import.
- Wait for about 1 or 2 days then continue from step 3
I have tested to clean temporary directory every 3 mins (0 */3 * ? * *), the issue was not reproducible.
Actual Results
- Go to an existing page (you want to view the page, not edit it).
- Choose (...) > Import Word Document
- Choose Browse and locate the Word document you want to import then choose Next.
The import document options does not appear, instead we observed the following:
- In UI:

- <Confluence_Home>/temp is empty
- In catalina.out
[WordImportCanaryExecutor:thread-1] INFO com.atlassian.confluence.extra.office.canary.CanaryCage - Checking inputs using OfficeConnector-canary.jar [WordImportCanaryExecutor:thread-1] INFO com.atlassian.confluence.extra.office.canary.CanaryCage - Executing canary using [/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/jre/bin/java, -Xmx1024m, -Djava.awt.headless=true, -cp, /Users/lwang3/confluence-home/atlassian-confluence-6.0.6/temp/com.atlassian.confluence.extra.office.canary.aspose.words.WordImportCanaryExecutor/OfficeConnector-canary.jar, com.atlassian.confluence.extra.office.canary.aspose.words.WordImportTestRunner, /Users/lwang3/confluence-home/atlassian-confluence-6.0.6/temp/upload_fe06d83f_4278_4fad_bb04_6496a569dd8b_00000017.tmp] [WordImportCanaryExecutor:thread-1] WARN com.atlassian.confluence.extra.office.canary.CanaryCage - Canary OfficeConnector-canary.jar choked and died whilst processing [/Users/lwang3/confluence-home/atlassian-confluence-6.0.6/temp/upload_fe06d83f_4278_4fad_bb04_6496a569dd8b_00000017.tmp] [WordImportCanaryExecutor:thread-1] WARN com.atlassian.confluence.extra.office.canary.CanaryCage - Canary output: Error: Could not find or load main class com.atlassian.confluence.extra.office.canary.aspose.words.WordImportTestRunner [http-nio-6606-exec-4] ERROR com.atlassian.confluence.extra.office.canary.AbstractCanaryExecutor - Canary choked and died on doc file Confluence Test Word1.docx
Expected Results
- OfficeConnector-canary.jar should not be removed from <Confluence_Home>/temp
Notes
Checked the code of the plugin at https://stash.atlassian.com/projects/CONFSERVER/repos/officeconnector/browse.
We observed:
- The plugin creates the jar file at the first time a word file is uploaded
- The plugin does not check/recreate the jar
- The temp clean job deletes the files older than 1 hour
Workaround
- Disable Clean Temp folder scheduled job (e.g run cron job every 99 years)
- Create the script to check the OfficeConnector-canary.jar existence, for example:
#!/bin/bash file = /data/confluence-home/temp/com.atlassian.confluence.extra.office.canary.aspose.words.WordImportCanaryExecutor/OfficeConnector-canary.jar if [ -f "$file" ] then exit 1 else cp "OfficeConnector-canary.jar" "$file" fi
- mentioned in
-
Page Loading...