-
Bug
-
Resolution: Fixed
-
Low
-
None
-
3.0, 3.1, 3.2, 3.2.1, 3.3, 4.2, 4.3, 5.3.4, 5.6.1
-
Severity 3 - Minor
-
NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.
Bug Description
When you are importing word document using Office Connector's Doc Import function, if the space does not have a homepage set, you will get the following stacktrace:
Cause java.lang.NullPointerException at com.benryan.webwork.WordImportAction.doFileImport(WordImportAction.java:312) Stack Trace:[hide] java.lang.NullPointerException at com.benryan.webwork.WordImportAction.doFileImport(WordImportAction.java:312) at com.benryan.webwork.WordImportAction.executeFileImport(WordImportAction.java:146) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:302)
Steps to reproduce
In Confluence versions above 3.2
- First, ensure that the space that you are using does not have a homepage set.
- Next, go to any page, and use the "Import Word Document" feature
- Upload the word document you want to import
- Use the default setting:
Example
Root page title: Test Where to import: Import as a new page in the current space Title conflicts: Rename imported pages if page name already exists
- Click Import button
- You will get the Oops page with the stacktrace mentioned above
In Confluence 3.2 and below
- First, ensure that the space that you are using does not have a homepage set.
- Next, go to any page, and use the "Doc Import" feature
- Select the word document you want to import
- Click the Advanced button
- Use the following setting:
Example
Root page title: Test Where to import: Import as a new page in the current space Title conflicts: Imported pages become new versions of existing pages with the same title
- Click Import button
- You will get the Oops page with the stacktrace mentioned above
Screenshot
Workaround
- Please set a homepage for the space. For more information on how to do this, refer to the following documentation:
- relates to
-
CONFCLOUD-53372 Unable to Import large Word Document to Confluence
- Closed
-
CONFCLOUD-20557 Import Word Document causes NullPointerException when a space does not have a homepage set
- Closed