Menu

#19 3.6GA WordAdapter throws exception on password-protected Word doc

v3.0 Alpha
wont-fix
nobody
None
5
2015-10-06
2015-10-06
dgn
No

When processing a Word document (.doc) that is read-protected with a password using the msword_adapter_3_2.jar an exception is thrown with the message "ord Adapter couldn't extract metadata: - The document password is incorrect."

This excpetion is thrown in nz.govt.natlib.adapter.word.WordAdapter.java, line 105 where the Asprose Document object is instantiated. The previous version of this class did not have the Asprose code so was able to handle a password-protected Word document and provide metadata.

Please consider wrapping the new Aprose code (which provides additional properties) with an extra try/catch block so any failure with this code will still result in being able to provide previously available metadata.

Discussion

  • Preeti Badle

    Preeti Badle - 2015-10-06

    Please take the latest code from 'https://github.com/DIA-NZ/Metadata-Extraction-Tool.git'. The code on source forge will not be updated henceforth as it is moved to github. Thanks.

     
  • Preeti Badle

    Preeti Badle - 2015-10-06
    • Status: open --> wont-fix
     

Log in to post a comment.