Hi,
Caused by: java.io.FileNotFoundException: C:\Program Files
(x86)\XWiki\jetty\work\Jetty_0_0_0_0_8080_xwiki__xwiki__5alevh\fcff1e5d-5db9-4c7c-86f3-aa40068177e9\input\D:\Users\bet\Desktop\test.doc
This error was reported by one other user too, unfortunately I could not
reproduce it. The wired thing is how input path
(D:\Users\bet\Desktop\test.doc)
got transferred to server side. I suspect that commons file upload (xwiki
file upload plugin) have an issue where getFileName() function returns file
path instead of file name, however as i said i could not reproduce this.
Following is the code i use for extracting the name of the uploaded file
(for devs to check):
<code>
#set($fileUpload=$xwiki.fileupload)
#set($fileName=$fileUpload.getFileName("filePath"))
#if(! $fileName)
{{error}}$msg.get("xe.officeimporter.results.missingfile",
[$goBack]){{/error}}
#else
#set($void=$fileUpload.loadFileList())
#set($officeFileStream=$fileUpload.fileItems.get(0).inputStream)
#end
</code>
"filePath" above refers to the file upload input box's name attribute
(html).
@Ben: Can you try deleting all the contents of "C:\Program
Files(x86)\XWiki\jetty\work\" directory and redo the import?
Many thanks for reporting and debugging this issue :)
- Asiri