pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1601926 - /pdfbox/branches/1.8/lucene/src/main/java/org/apache/pdfbox/lucene/LucenePDFDocument.java
Date Wed, 11 Jun 2014 15:27:52 GMT
Author: tilman
Date: Wed Jun 11 15:27:51 2014
New Revision: 1601926

URL: http://svn.apache.org/r1601926
Log:
PDFBOX-1474: removed catch handler for non existant InvalidPasswordException

Modified:
    pdfbox/branches/1.8/lucene/src/main/java/org/apache/pdfbox/lucene/LucenePDFDocument.java

Modified: pdfbox/branches/1.8/lucene/src/main/java/org/apache/pdfbox/lucene/LucenePDFDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/lucene/src/main/java/org/apache/pdfbox/lucene/LucenePDFDocument.java?rev=1601926&r1=1601925&r2=1601926&view=diff
==============================================================================
--- pdfbox/branches/1.8/lucene/src/main/java/org/apache/pdfbox/lucene/LucenePDFDocument.java
(original)
+++ pdfbox/branches/1.8/lucene/src/main/java/org/apache/pdfbox/lucene/LucenePDFDocument.java
Wed Jun 11 15:27:51 2014
@@ -38,7 +38,6 @@ import org.apache.pdfbox.pdmodel.PDDocum
 import org.apache.pdfbox.pdmodel.PDDocumentInformation;
 
 import org.apache.pdfbox.exceptions.CryptographyException;
-import org.apache.pdfbox.exceptions.InvalidPasswordException;
 
 import org.apache.pdfbox.util.PDFTextStripper;
 
@@ -461,13 +460,6 @@ public class LucenePDFDocument
         {
             throw new IOException( "Error decrypting document(" + documentLocation + "):
" + e );
         }
-        catch( InvalidPasswordException e )
-        {
-            //they didn't suppply a password and the default of "" was wrong.
-            throw new IOException(
-                "Error: The document(" + documentLocation +
-                ") is encrypted and will not be indexed." );
-        }
         finally
         {
             if( pdfDocument != null )



Mime
View raw message