Menu

#842 Password-protected PDF prevents project from loading

4.1
closed-fixed
None
5
2017-01-09
2016-11-08
No

If you put a protected / secured PDF in the /source/ folder, the project will not open and an error message such as "Unable to read project file! -- java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider -- OK" will show up. Same happens if you try to reload the project after putting the file in /source/.

Right now the user is left with the error message but can't really do anything. After clicking OK, the project gets closed and the cursor becomes an hourglass (although you can still go to the menu and continue opening a new project, for instance). It would be much better if the error message was more informative and the project could open (or keep open) nevertheless.

Discussion

  • Aaron Madlon-Kay

    • summary: Error message after loading a secured PDF as a source file --> Password-protected PDF prevents project from loading
    • status: open --> open-fixed
    • assigned_to: Aaron Madlon-Kay
    • Group: SVN --> 4.0
     
  • Aaron Madlon-Kay

    Password-protected PDFs are not currently supported, but the way the error is (not) handled at the moment is problematic.

    I have fixed it so we handle this the same way we handle other format errors: The file is skipped and the project continues loading as usual. At the moment there is no good way to propagate the error up to the user as a dialog, so I have added a log message instead.

     
  • Marco Cevoli

    Marco Cevoli - 2016-11-09

    Thanks, Aaron. As a side note, the issue occurred even with non-password protected PDF's, namely those that prevent you from selecting and/or copying text, but don't require any password to open them. I thought it was relevant to your troubleshooting.

     
    • Aaron Madlon-Kay

      Please try a nightly build and report back with a sample file if the issue
      still occurs.

       
  • Didier Briel

    Didier Briel - 2017-01-09
    • status: open-fixed --> closed-fixed
    • Group: 4.0 --> 4.1
     
  • Didier Briel

    Didier Briel - 2017-01-09

    Fixed in the released version 4.1 of OmegaT.

    Didier

     

Log in to post a comment.