Bug#284634: marked as done (fop: Compile with encryption support)

Debian Bug Tracking System owner@bugs.debian.org
Mon Mar 21 09:00:10 2005


Your message dated Mon, 21 Mar 2005 10:32:17 -0500
with message-id <E1DDOt7-0008Rr-00@newraff.debian.org>
and subject line Bug#284634: fixed in fop 1:0.20.5-5
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 7 Dec 2004 16:08:06 +0000
>From sballard@netreach.com Tue Dec 07 08:08:06 2004
Return-path: <sballard@netreach.com>
Received: from newmx1.fast.net [209.92.1.31] 
	by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
	id 1Cbhsj-0006MW-00; Tue, 07 Dec 2004 08:08:05 -0800
Received: (qmail 3524 invoked from network); 7 Dec 2004 16:08:04 -0000
Received: from unknown (HELO rainbow.netreach.net) ([204.9.98.14]) (envelope-sender <sballard@netreach.com>)
          by newmx1.fast.net (qmail-ldap-1.03) with SMTP
          for <submit@bugs.debian.org>; 7 Dec 2004 16:08:04 -0000
Received: from sballard by rainbow.netreach.net with local (Exim 3.35 #1 (Debian))
	id 1Cbhsh-0006zJ-00; Tue, 07 Dec 2004 11:08:03 -0500
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Stuart Ballard <sballard@netreach.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: fop: Compile with encryption support
X-Mailer: reportbug 3.2
Date: Tue, 07 Dec 2004 11:08:03 -0500
Message-Id: <E1Cbhsh-0006zJ-00@rainbow.netreach.net>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-7.0 required=4.0 tests=BAYES_00,DATING,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: fop
Version: 1:0.20.5-4
Severity: wishlist


Would you consider building Fop with the encryption options available? I
believe that this involves making sure that a crypto implementation is
available at compile time. My understanding is that Free runtimes
provide this via GNU Crypto, although I have no idea whether that's
sufficient for Fop to work. I'm using a non-free JDK at the moment
myself (work stuff) but I understand you wouldn't want to increase the
non-free dependencies.

The specific code I'm using looks like this (note in particular the
lines marked "HERE" - it works without these lines):

    Driver driver = new Driver();
    ConsoleLogger logger = new ConsoleLogger(ConsoleLogger.LEVEL_WARN);
    MessageHandler.setScreenLogger(logger);
    driver.setLogger(logger);
    driver.setRenderer(Driver.RENDER_PDF);
    HashMap rendererOptions = new HashMap();
    rendererOptions.put("allowEditContent", "FALSE");      // HERE
    rendererOptions.put("allowEditAnnotations", "FALSE");  // AND HERE
    driver.getRenderer().setOptions(rendererOptions);
    driver.setOutputStream(out);
    driver.setInputSource(new InputSource(in));
    driver.run();

When I run this code I get an IllegalStateException: "PDF encryption not
available.". The documentation suggests that this is due to a failure to
find encryption support when fop was *compiled*, rather than a lack of
the necessary libraries on my machine at runtime which would (according
to the docs) give an error about being unable to find a provider for
RC4.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages fop depends on:
ii  j2re1.3 [java2-runtime]   1.3.1.02b-2    Blackdown Java(TM) 2 Runtime Envir
ii  j2re1.4 [java2-runtime]   1.4.0.99beta-1 Blackdown Java(TM) 2 Runtime Envir
ii  java-common               0.22           Base of all Java packages
ii  libavalon-framework-java  4.1.2-2        Common framework for Java server a
ii  libbatik-java             1.5final-3     xml.apache.org SVG Library
ii  libbsf-java               1:2.3.0rc1-2   Bean Scripting Framework to suppor
ii  liblogkit-java            1.2.2-2        Lightweight and fast designed logg
ii  libxalan2-java            2.6.0-1        XSL Transformations (XSLT) process
ii  libxerces-java            1.4.4-2        Validating XML parser for Java

-- no debconf information

---------------------------------------
Received: (at 284634-close) by bugs.debian.org; 21 Mar 2005 15:39:17 +0000
>From katie@ftp-master.debian.org Mon Mar 21 07:39:17 2005
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DDOzs-0006j2-00; Mon, 21 Mar 2005 07:39:16 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1DDOt7-0008Rr-00; Mon, 21 Mar 2005 10:32:17 -0500
From: Wolfgang Baer <WBaer@gmx.de>
To: 284634-close@bugs.debian.org
X-Katie: $Revision: 1.55 $
Subject: Bug#284634: fixed in fop 1:0.20.5-5
Message-Id: <E1DDOt7-0008Rr-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Mon, 21 Mar 2005 10:32:17 -0500
Delivered-To: 284634-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 2

Source: fop
Source-Version: 1:0.20.5-5

We believe that the bug you reported is fixed in the latest version of
fop, which is due to be installed in the Debian FTP archive:

fop-doc_0.20.5-5_all.deb
  to pool/contrib/f/fop/fop-doc_0.20.5-5_all.deb
fop_0.20.5-5.diff.gz
  to pool/contrib/f/fop/fop_0.20.5-5.diff.gz
fop_0.20.5-5.dsc
  to pool/contrib/f/fop/fop_0.20.5-5.dsc
fop_0.20.5-5_all.deb
  to pool/contrib/f/fop/fop_0.20.5-5_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 284634@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Wolfgang Baer <WBaer@gmx.de> (supplier of updated fop package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 11 Mar 2005 11:09:13 +0100
Source: fop
Binary: fop fop-doc
Architecture: source all
Version: 1:0.20.5-5
Distribution: unstable
Urgency: low
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Wolfgang Baer <WBaer@gmx.de>
Description: 
 fop        - XML to PDF Translator
 fop-doc    - Documentation for fop
Closes: 251270 284634 298525
Changes: 
 fop (1:0.20.5-5) unstable; urgency=low
 .
   * Patched to compile against libbatik-java 1.5.1
     updated build-depends to reflect this
   * Build with jdk1.4 - therefore encryption support enabled (closes: 284634)
   * Moved from ant to libant1.6-java build-dependency
   * Use libxerces2-java instead of libxerces-java (closes: 298525)
   * Removed conflicts with libfop-java and libfop-java-doc (closes: 251270)
   * avdyk: added Wolfgang to the uploaders
Files: 
 81a030e2aecffb818b45c468ed2a2239 941 contrib/text optional fop_0.20.5-5.dsc
 d9424c1642258cf9b3ef606aeddedfb7 6730 contrib/text optional fop_0.20.5-5.diff.gz
 5c5be944d04274901f571304059d1ab8 1347244 contrib/text optional fop_0.20.5-5_all.deb
 04f2eb91b458ad3402f07de4534b117a 1642936 contrib/text optional fop-doc_0.20.5-5_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCPuVr4vzFZu62tMIRAipcAJ9skbQ+oXpW2ESzUbCf3qOL1ZKvugCeNT2z
FFdBqC+F+lWUDTpFOBxZmsg=
=ATCC
-----END PGP SIGNATURE-----