Debian Bug report logs - #661604
Fails if non-utf8 characters in filename (exception in open_reader)

version graph

Package: pdftk; Maintainer for pdftk is Johann Felix Soden <johfel@debian.org>; Source for pdftk is src:pdftk.

Reported by: Mathieu Malaterre <malat@debian.org>

Date: Tue, 28 Feb 2012 13:21:07 UTC

Severity: normal

Tags: confirmed

Found in versions pdftk/1.44-6, pdftk/1.41+dfsg-10, pdftk/1.41+dfsg-10+squeeze1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Johann Felix Soden <johfel@gmx.de>:
Bug#661604; Package pdftk. (Tue, 28 Feb 2012 13:21:10 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mathieu Malaterre <mathieu.malaterre@gmail.com>:
New Bug report received and forwarded. Copy sent to Johann Felix Soden <johfel@gmx.de>. (Tue, 28 Feb 2012 13:21:16 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Mathieu Malaterre <mathieu.malaterre@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Error: Unexpected Exception in open_reader()
Date: Tue, 28 Feb 2012 14:18:04 +0100
[Message part 1 (text/plain, inline)]
Package: pdftk
Version: 1.41+dfsg-10+squeeze1
Severity: normal


Hi,

I have created an empty PDF file using:

convert -size 100x100 xc:none empty.pdf

I then simply use the filename from a PDF file created on a windows system, which I then zipped (see attached demo.zip).

pdftk fails on this file (after decompression) with:

$ pdftk Just4Fun\ 001\ -\ Proposition\ d\'Optimisation\ d\'un\ Syst$'\350'me\ de\ D$'\351'codage\ d\'Image\ -\ Ed\ 1.0\ \(Fr\).pdf output bla.pdf
java.lang.NullPointerException
   at java.io.File.normalizePath(libgcj.so.10)
   at java.io.File.<init>(libgcj.so.10)
   at com.lowagie.text.pdf.RandomAccessFileOrArray.<init>(itext-2.1.7.jar.so)
   at com.lowagie.text.pdf.RandomAccessFileOrArray.<init>(itext-2.1.7.jar.so)
   at com.lowagie.text.pdf.PRTokeniser.<init>(itext-2.1.7.jar.so)
   at com.lowagie.text.pdf.PdfReader.<init>(itext-2.1.7.jar.so)
   at com.lowagie.text.pdf.PdfReader.<init>(itext-2.1.7.jar.so)
Error: Unexpected Exception in open_reader()
Error: Failed to open PDF file: 
   Just4Fun 001 - Proposition d'Optimisation d'un Système de Décodage d'Image - Ed 1.0 (Fr).pdf
Errors encountered.  No output created.
Done.  Input errors, so no output created.


My system is configured with UTF-8

-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (200, 'testing'), (100, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pdftk depends on:
ii  libbcmail-java               1.44+dfsg-2 Bouncy Castle generators/processor
ii  libbcprov-java               1.44+dfsg-2 Bouncy Castle Java Cryptographic S
ii  libc6                        2.11.2-10   Embedded GNU C Library: Shared lib
ii  libgcc1                      1:4.4.5-8   GCC support library
ii  libgcj-bc                    4.4.5-1     Link time only library for use wit
ii  libgcj10                     4.4.5-2     Java runtime library for use with 
ii  libitext-java                2.1.7-2     Java Library to create and manipul
ii  libitext-java-gcj            2.1.7-2     Java Library to create and manipul
ii  libstdc++6                   4.4.5-8     The GNU Standard C++ Library v3

pdftk recommends no packages.

Versions of packages pdftk suggests:
ii  poppler-utils [xpdf-utils]    0.12.4-1.2 PDF utilitites (based on libpopple

-- no debconf information
[demo.zip (application/zip, attachment)]

Changed Bug submitter to 'Mathieu Malaterre <malat@debian.org>' from 'Mathieu Malaterre <mathieu.malaterre@gmail.com>' Request was from Mathieu Malaterre <malat@debian.org> to control@bugs.debian.org. (Wed, 28 Mar 2012 13:55:10 GMT) Full text and rfc822 format available.

Marked as found in versions pdftk/1.41+dfsg-10. Request was from Johann Felix Soden <johfel@debian.org> to control@bugs.debian.org. (Sun, 30 Sep 2012 13:45:06 GMT) Full text and rfc822 format available.

Marked as found in versions pdftk/1.44-6. Request was from Johann Felix Soden <johfel@debian.org> to control@bugs.debian.org. (Sun, 30 Sep 2012 13:45:06 GMT) Full text and rfc822 format available.

Added tag(s) confirmed. Request was from Johann Felix Soden <johfel@debian.org> to control@bugs.debian.org. (Sun, 30 Sep 2012 13:45:07 GMT) Full text and rfc822 format available.

Changed Bug title to 'Fails if non-utf8 characters in filename (exception in open_reader)' from 'Error: Unexpected Exception in open_reader()' Request was from Johann Felix Soden <johfel@debian.org> to control@bugs.debian.org. (Sun, 30 Sep 2012 13:45:07 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 19 00:27:17 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.