Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
2.5
-
None
-
Unknown
-
Description
Steps to reproduce :
- XWiki version : 14.10.6
- Prepare the file to import (csv file in my case) with a column corresponding to the office file
- Prepare a zip file containing the office file mentioned in the CSV
- Create a wiki page and using object editor attach an object of class BatchImport.BatchImportClass to the page
- On the BatchImportClass configure the path to the zip file and enable file upload and file import.
- Make sure the office server is up and running
- Execute the batch import
Expected result :
The import is executed successfully and the file from the attachment column is attached to the imported page and its content is converted and added as content of the page.
Actual result :
The import fails with the following error :
Failed to execute the [velocity] macro. Cause: [org.xwiki.officeimporter.script.OfficeImporterScriptService.officeToXDOM(Ljava/io/InputStream;Ljava/lang/String;Ljava/lang/String;Z)Lorg/xwiki/officeimporter/document/XDOMOfficeDocument;]. Click on this message for details. java.lang.NoSuchMethodError: org.xwiki.officeimporter.script.OfficeImporterScriptService.officeToXDOM(Ljava/io/InputStream;Ljava/lang/String;Ljava/lang/String;Z)Lorg/xwiki/officeimporter/document/XDOMOfficeDocument;
Full trace : batch-import-error.txt.
Note that the import of the office file is working when it is imported using the XWiki "Create Page From Office" feature.