Return-Path: Delivered-To: apmail-lucene-tika-dev-archive@www.apache.org Received: (qmail 19770 invoked from network); 23 Aug 2009 02:27:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Aug 2009 02:27:55 -0000 Received: (qmail 70607 invoked by uid 500); 22 Aug 2009 21:01:37 -0000 Delivered-To: apmail-lucene-tika-dev-archive@lucene.apache.org Received: (qmail 70514 invoked by uid 500); 22 Aug 2009 21:01:36 -0000 Mailing-List: contact tika-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: tika-dev@lucene.apache.org Delivered-To: mailing list tika-dev@lucene.apache.org Received: (qmail 70504 invoked by uid 99); 22 Aug 2009 21:01:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Aug 2009 21:01:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Aug 2009 21:01:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 15E39234C004 for ; Sat, 22 Aug 2009 14:01:15 -0700 (PDT) Message-ID: <49016856.1250974875080.JavaMail.jira@brutus> Date: Sat, 22 Aug 2009 14:01:15 -0700 (PDT) From: "Jukka Zitting (JIRA)" To: tika-dev@lucene.apache.org Subject: [jira] Resolved: (TIKA-223) PDFParser causes Problems when using encrypted PDF documents In-Reply-To: <233895973.1241619330433.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TIKA-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jukka Zitting resolved TIKA-223. -------------------------------- Resolution: Duplicate Assignee: Jukka Zitting Resolving as a duplicate of TIKA-267 that I fixed in revision 806888. > PDFParser causes Problems when using encrypted PDF documents > ------------------------------------------------------------ > > Key: TIKA-223 > URL: https://issues.apache.org/jira/browse/TIKA-223 > Project: Tika > Issue Type: Bug > Components: parser > Affects Versions: 0.3 > Environment: Java 1.5.x on MAC, WIN, LIN > Reporter: Joachim Zittmayr > Assignee: Jukka Zitting > Original Estimate: 2h > Remaining Estimate: 2h > > The PDFParser.parse() method decrypts the document for the metadata already and then passes it over to PDF2XHTML.process(), which in turn calls the inherited getText(). This calls writeText(), which tries to decrypt the PDDocument again, but this will fail as it is already decrypted. The solution would be to override writeText(), without the document.isEncrypted check. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.